Series.cat.remove_unused_categories(*args, **kwargs) Removes categories which are not used.
| Parameters: |
inplace : boolean (default: False) Whether or not to drop unused categories inplace or return a copy of this categorical with unused categories dropped. |
|---|---|
| Returns: |
cat : Categorical with unused categories dropped or None if inplace. |
© 2011–2012 Lambda Foundry, Inc. and PyData Development Team
© 2008–2011 AQR Capital Management, LLC
© 2008–2014 the pandas development team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.18.1/generated/pandas.Series.cat.remove_unused_categories.html