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
相關文章
相關標籤/搜索