基本上我是python的新手,所以想在这里得到一些帮助。
我有一张excel工作簿,里面有两张,1。数据,2。数据透视表。
我在使用此功能时遇到错误," openpyxl.load_workbook(' Report.xlsx')
这是我得到的错误。
Traceback (most recent call last):
File "excel_copy_by_header.py", line 15, in <module>
wb2 = openpyxl.load_workbook('Report_0728.xlsx')
File "C:\Users\user\AppData\Local\Programs\Python\Python36-32\lib\site-
packages\openpyxl-2.5.0a2-py3.6.egg\openpyxl\reader\excel.py", line 275, in load_workbook
pivot = TableDefinition.from_tree(tree)
File "C:\Users\user\AppData\Local\Programs\Python\Python36-32\lib\site-packages\openpyxl-2.5.0a2-py3.6.egg\openpyxl\descriptors\serialisable.py", line 79, infrom_tree
obj = desc.from_tree(el)
File "C:\Users\user\AppData\Local\Programs\Python\Python36-32\lib\site-packages\openpyxl-2.5.0a2-py3.6.egg\openpyxl\descriptors\sequence.py", line 86, in from_tree
return [self.expected_type.from_tree(el) for el in node]
File "C:\Users\user\AppData\Local\Programs\Python\Python36-32\lib\site-packages\openpyxl-2.5.0a2-py3.6.egg\openpyxl\descriptors\sequence.py", line 86, in <listcomp>
return [self.expected_type.from_tree(el) for el in node]
File "C:\Users\user\AppData\Local\Programs\Python\Python36-32\lib\site-packages\openpyxl-2.5.0a2-py3.6.egg\openpyxl\descriptors\serialisable.py", line 99, infrom_tree
return cls(**attrib)
TypeError: __init__() got an unexpected keyword argument 'extLst'
根据我最初的研究,我无法弄清楚python 3.6是否支持带有数据透视表的工作簿。
非常感谢任何形式的帮助!!