Series.cat.
reorder_categories
Reorder categories as specified in new_categories.
new_categories need to include all old categories and no new category items.
The categories in new order.
Whether or not the categorical is treated as a ordered categorical. If not given, do not change the ordered information.
Whether or not to reorder the categories inplace or return a copy of this categorical with reordered categories.
If the new categories do not contain all old category items or any new ones
See also
rename_categories
add_categories
remove_categories
remove_unused_categories
set_categories