pandas 中的分类数据pandas.Categorical

(1)pandas.Categorical() pandas.Categorical(values, categories=None, ordered=None, dtype=None, fastpath=False) 参考文档 栗子:html pd.Categorical(['a', 'b', 'c', 'a', 'b', 'c']) 结果:web [a, b, c, a, b, c] Cate
相关文章
相关标签/搜索