Categories#

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

Series.cat.get_categories()

Get the categories stored in this data type.

Series.cat.is_local()

Return whether or not the column is a local categorical.

Series.cat.len_bytes()

Return the byte-length of the string representation of each value.

Series.cat.len_chars()

Return the number of characters of the string representation of each value.

Series.cat.to_local()

Convert a categorical column to its local representation.

Series.cat.uses_lexical_ordering()

Return whether or not the series uses lexical ordering.