# dask.dataframe.Series.cat.as_unordered

#### dataframe.Series.cat.as_unordered() → Self

Set the Categorical to be unordered.

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

Some inconsistencies with the Dask version may exist.

This method returns a new Categorical with the ordered attribute set
to False, disabling comparison operations between categories.

* **Returns:**
  Categorical
  : Unordered Categorical.

#### SEE ALSO
[`as_ordered`](dask.dataframe.Series.cat.as_ordered.html.md#dask.dataframe.Series.cat.as_ordered)
: Set the Categorical to be ordered.

### Examples

For [`pandas.Series`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.html#pandas.Series):

```pycon
>>> raw_cat = pd.Categorical(["a", "b", "c", "a"], ordered=True)
>>> ser = pd.Series(raw_cat)
>>> ser.cat.ordered
True
>>> ser = ser.cat.as_unordered()
>>> ser.cat.ordered
False
```

For [`pandas.CategoricalIndex`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.CategoricalIndex.html#pandas.CategoricalIndex):

```pycon
>>> ci = pd.CategoricalIndex(["a", "b", "c", "a"], ordered=True)
>>> ci.ordered
True
>>> ci = ci.as_unordered()
>>> ci.ordered
False
```

<!-- !! processed by numpydoc !! -->
