pyspark.pandas.CategoricalIndex.as_unordered#
- CategoricalIndex.as_unordered()[source]#
- Set the Categorical to be unordered. - Returns
- CategoricalIndex
- Unordered Categorical 
 
 - Examples - >>> idx = ps.CategoricalIndex(list("abbccc")).as_ordered() >>> idx CategoricalIndex(['a', 'b', 'b', 'c', 'c', 'c'], categories=['a', 'b', 'c'], ordered=True, dtype='category') - >>> idx.as_unordered() CategoricalIndex(['a', 'b', 'b', 'c', 'c', 'c'], categories=['a', 'b', 'c'], ordered=False, dtype='category')