Skip to content

Commit 68b4618

Browse files
committed
DOC: typos in categorical.rst
1 parent cdd37e5 commit 68b4618

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/source/categorical.rst

+3-3
Original file line numberDiff line numberDiff 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
-----------

0 commit comments

Comments
 (0)