Skip to content

Commit 361ef9e

Browse files
berkay-dincerjreback
authored andcommitted
Fixed the memory usage explanation of categorical in gotchas from O(nm) to O(n+m) (#17736)
1 parent 408ecd2 commit 361ef9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: doc/source/categorical.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ Memory Usage
979979

980980
.. _categorical.memory:
981981

982-
The memory usage of a ``Categorical`` is proportional to the number of categories times the length of the data. In contrast,
982+
The memory usage of a ``Categorical`` is proportional to the number of categories plus the length of the data. In contrast,
983983
an ``object`` dtype is a constant times the length of the data.
984984

985985
.. ipython:: python

0 commit comments

Comments
 (0)