Widnws10 Pro
Python 3.9
Pythonでエクセルを操作してするコードを書いた。
以下のエラーが発生した
```
raise XLRDError(FILE_FORMAT_DESCRIPTIONS[file_format]+'; not supported')
xlrd.biffh.XLRDError: Excel xlsx file; not supported
pandas+xlrdでxlsxを開こうとするとxlrd.biffh.XLRDError: Excel xlsx file; not supportedのエラーが出る
を参考に以下のコマンドを実行してインストールした。
pip install xlrd==1.2.0
すると、今度はエラーが変わった。
AttributeError: 'ElementTree' object has no attribute 'getiterator'
df_order = pd.read_excel(filepath)から
pd.read_excel(filepath,engine="openpyxl")に修正
無事コードが通った。