Categories#

The following methods are available under the Series.cat attribute.

Series.cat.set_ordering(ordering)

Determine how this categorical series should be sorted.