We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7faeb33 commit 5d4a0ceCopy full SHA for 5d4a0ce
doc/source/categorical.rst
@@ -358,10 +358,10 @@ Renaming categories is done by assigning new values to the
358
s
359
s.cat.categories = ["Group %s" % g for g in s.cat.categories]
360
361
- s.cat.rename_categories([1,2,3])
+ s = s.cat.rename_categories([1,2,3])
362
363
# You can also pass a dict-like object to map the renaming
364
- s.cat.rename_categories({1: 'x', 2: 'y', 3: 'z'})
+ s = s.cat.rename_categories({1: 'x', 2: 'y', 3: 'z'})
365
366
367
.. note::
0 commit comments