pandas.Series.cat.as_unordered

Series.cat.as_unordered(*args, **kwargs)[source]

Set the Categorical to be unordered.

Parameters
inplace:bool, default False

Whether or not to set the ordered attribute in-place or return a copy of this categorical with ordered set to False.

Returns
Categorical or None

Unordered Categorical or None if inplace=True.

© 2008–2021, 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/1.3.4/reference/api/pandas.Series.cat.as_unordered.html