|

楼主 |
发表于 2024-6-26 21:23:39
|
显示全部楼层
raceback (most recent call last):
File "D:\anaconda3\Lib\site-packages\pandas\core\indexes\base.py", line 3791, in get_loc
return self._engine.get_loc(casted_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "index.pyx", line 152, in pandas._libs.index.IndexEngine.get_loc
File "index.pyx", line 181, in pandas._libs.index.IndexEngine.get_loc
File "pandas\_libs\hashtable_class_helper.pxi", line 7080, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas\_libs\hashtable_class_helper.pxi", line 7088, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'W'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\PyCharm\excel_merge\excel_merge\.venv\Lib\site-packages\finish_forth.py", line 10, in <module>
w_col_index = ef.columns.get_loc('W')
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\anaconda3\Lib\site-packages\pandas\core\indexes\base.py", line 3798, in get_loc
raise KeyError(key) from err
KeyError: 'W' |
|