Remove categories which are not used.

param inplace
bool, default False

Whether or not to drop unused categories inplace or return a copy of this categorical with unused categories dropped.


cat : Categorical with unused categories dropped or None if inplace.


This feature is currently unsupported by Intel Scalable Dataframe Compiler