pyspark.pandas.CategoricalIndex.remove_unused_categories???
-
CategoricalIndex.
remove_unused_categories
高山市 内置:布卢尔=虚伪 )QQ可选 [pyspark.pandas.indexes.category.CategoricalIndex 万事通 ??? -
删除非使用类别
- 参数解析
-
- 内置 布尔默认假
-
置未用类别或返回非用类别
- 回归
-
- 猫 分类Index或None
-
未使用类别分类下降或无
place=True
.
并见
-
rename_categories
-
重命名类别
-
reorder_categories
-
重排序类别
-
添加子类
-
添加新类别
-
remove_categories
-
删除指定的类别
-
集分类
-
设置类别为指定类别
实例
>>>ix=ss系统.CategoricalIndex高山市链表高山市abccc)类别划分=['a','b',C,'d')>>>ix分类Index ([a],b',b',c'类别=[a',b',c',d'
>>>ix.remove_unused_categories(b)分类Index ([a],b',b',c'类别=[a',b',c',命令=False,d类型='类