Skip to content

Commit

Permalink
Fixed the memory usage explanation of categorical in gotchas from O(n…
Browse files Browse the repository at this point in the history
…m) to O(n+m) (#17736)
  • Loading branch information
berkay-dincer authored and jreback committed Oct 2, 2017
1 parent 408ecd2 commit 361ef9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/source/categorical.rst
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ Memory Usage

.. _categorical.memory:

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

.. ipython:: python
Expand Down

0 comments on commit 361ef9e

Please sign in to comment.