dask.dataframe.Series.cat.as_ordered

dask.dataframe.Series.cat.as_ordered

dataframe.Series.cat.as_ordered(*args, **kwargs)

Set the Categorical to be ordered.

This docstring was copied from pandas.core.arrays.categorical.CategoricalAccessor.as_ordered.

Some inconsistencies with the Dask version may exist.

Returns
Categorical

Ordered Categorical.