在使用StyleFrame包对熊猫DataFrame进行openpyxl造型时,我得到了以下例外。
当我尝试这段带有英文标题的代码时,它的工作原理与我所例外。
self.sf.set_column_width(columns=u'שם הלקוח', width=35)
File "/Users/talperetz/.virtualenvs/natan-report/lib/python2.7/site-packages/StyleFrame/style_frame.py", line 259, in set_column_width
raise TypeError("column must be an index, column letter or column name")
TypeError: column must be an index, column letter or column name发布于 2015-09-03 10:59:28
您可能正在使用0.0.7版本或更早版本。版本0.0.8在unicode中有一个改进的支持,所以尝试升级。
https://stackoverflow.com/questions/32373668
复制相似问题