File tree 1 file changed +3
-3
lines changed
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:
51
51
variable to a categorical variable will save some memory, see :ref: `here <categorical.memory >`.
52
52
* The lexical order of a variable is not the same as the logical order ("one", "two", "three").
53
53
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 >`.
55
55
* As a signal to other python libraries that this column should be treated as a categorical
56
56
variable (e.g. to use suitable statistical methods or plot types).
57
57
@@ -347,8 +347,8 @@ Reordering the ``categories``, changes a future sort.
347
347
348
348
.. ipython :: python
349
349
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' ])
352
352
353
353
Comparisons
354
354
-----------
You can’t perform that action at this time.
0 commit comments