pyspark.pandas.CategoricalIndex.remove_categories???

CategoricalIndex. remove_categories 高山市 清除:联盟[pandas.core.indexes.base.Index,任选,链表万事通, 内置:布卢尔=虚伪 )QQ可选 [pyspark.pandas.indexes.category.CategoricalIndex 万事通 ???

删除指定的类别

清除必须包括在老类中移位类别中的值将设置为 NaN

参数解析
清除 类别或链表

类别应删除

内置 布尔默认假

是否删除原位类别或返回带原位类别绝对数副本

回归
分类Index或None

分类删除类别或无place=True.

提升
值错误

如果清除不包含在类别中

并见

rename_categories

重命名类别

reorder_categories

重排序类别

添加子类

添加新类别

remove_unused_categories

删除非使用类别

集分类

设置类别为指定类别

实例

>>>ix=ss系统.CategoricalIndex高山市链表高山市abccc)>>>ix分类Index ([a],b',b',c'类别=[a',b',c',命令=False,d类型='类
>>>ix.remove_categories高山市'b')分类Index类别=[a','c',命令=False,d类型='类