使用聚宽的python2.7,算出一个表格,感觉挺好
然而我的强迫症又发了,标题为什么对不齐啊。网上一研究,是因为标题是中文所致,解决方法:
但是,在聚宽里老是报错,找不到这个key
在网上继续找,发现有两个版本
其一,https://blog.csdn.net/weekdawn/article/details/81389865
其二,https://www.cnblogs.com/figo-studypath/p/9772630.html
估计跟版本有关
使用print pd.__version__查看版本,是0.16.2
再在网上查,果然没有这个属性
https://pandas.pydata.org/pandas-docs/version/0.16.2/options.html
试过各种招,比如替换
fr.columns = fr.columns.str.replace('wxxcwxxc','伟星新材')
都不行