例子
col_list_keep = [ “基金代码”,“基金名称_x”,“类型”,“近3月”,“近6月”,“近1年”, “score_收益率”,“score_最大回撤”,“score_超额收益”,“score_投资风格”,“score_投研团队实力”,“score_交易便利”,“score”,“pct_score” ]
col_list_replace = [ “基金代码”,“基金名称”,“类型”,“近3月收益率”,“近6月收益率”,“近1年收益率”, “收益率得分”,“最大回撤得分”,“超额收益得分”,“投资风格得分”,“投研团队实力得分”,“交易便利得分”,“总分”,“总分百分位” ]
notes: zip(list1,list2)本身不是dict需要转换 。list1会变成keys,list2变成values
dict_column = dict( zip(col_list_keep, col_list_replace) )