摘要: 一、Cat对象 cat对象的属性 使用astype将普通序列转换为分类变量,例如: s = pd.Series(['man','woman','child','man','child']) s = s.astype('category') s Out[49]: 0 man 1 woman 2 chi 阅读全文
posted @ 2021-01-07 23:42 爱睡觉的皮卡丘 阅读(53) 评论(0) 推荐(0) 编辑