2018年12月10日
摘要: import pandas as pd df = pd.DataFrame({'AAA' : [1,2,1,3], 'BBB' : [1,1,2,2], 'CCC' : [2,1,3,1]}) source_cols = df.columns new_cols = [str(x) + "_cat" for x in source_cols] categories = {1 : 'Alpha', ... 阅读全文
posted @ 2018-12-10 15:13 hailuo 阅读(5198) 评论(0) 推荐(0) 编辑