Series.cat.reorder_categories(self, *args, **kwargs)
[source]
Reorder categories as specified in new_categories.
new_categories
need to include all old categories and no new category items.
Parameters: |
|
---|---|
Returns: |
|
Raises: |
|
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.Series.cat.reorder_categories.html