File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ The categorical data type is useful in the following cases:
5151 variable to a categorical variable will save some memory, see :ref: `here <categorical.memory >`.
5252* The lexical order of a variable is not the same as the logical order ("one", "two", "three").
5353 By converting to a categorical and specifying an order on the categories, sorting and
54- min/max will use the logical order instead of the lexical order, see :ref: `here <catetgorical .sort >`.
54+ min/max will use the logical order instead of the lexical order, see :ref: `here <categorical .sort >`.
5555* As a signal to other python libraries that this column should be treated as a categorical
5656 variable (e.g. to use suitable statistical methods or plot types).
5757
@@ -347,8 +347,8 @@ Reordering the ``categories``, changes a future sort.
347347
348348.. ipython :: python
349349
350- dfs[' C ' ] = dfs[' A' ].cat.reorder_categories([' a' ,' b' ,' e' ])
351- dfs.sort([' C ' ,' B' ])
350+ dfs[' A ' ] = dfs[' A' ].cat.reorder_categories([' a' ,' b' ,' e' ])
351+ dfs.sort([' A ' ,' B' ])
352352
353353 Comparisons
354354-----------
You can’t perform that action at this time.
0 commit comments