2020年9月2日
摘要: 原来版本是pd.Factor,新版本换成了pd.Categorical.from_codes(),功能都一样; 实例: pd.Categorical.from_codes(iris.target, iris.target_names) 原来的target是这样的: array([0, 0, 0, 0 阅读全文
posted @ 2020-09-02 18:46 小小喽啰 阅读(1005) 评论(0) 推荐(1) 编辑