올려주신 네이버 웹스크롤 가능한 코드로 했는데 이런식으로 뜹니다.
혹시 조언해주실 수 있나요?
Traceback (most recent call last):
File "C:\Users\chohjender\anaconda3\lib\site-packages\pandas\core\indexes\base.py", line 3361, in get_loc
return self._engine.get_loc(casted_key)
File "pandas_libs\index.pyx", line 76, in pandas._libs.index.IndexEngine.get_loc
File "pandas_libs\index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc
File "pandas_libs\hashtable_class_helper.pxi", line 5198, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas_libs\hashtable_class_helper.pxi", line 5206, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'code'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "c:\myPackage\cho_DBUpdater.py", line 161, in
dbu = DBUpdater()
File "c:\myPackage\cho_DBUpdater.py", line 41, in init
self.update_comp_info()
File "c:\myPackage\cho_DBUpdater.py", line 57, in update_comp_info
self.codes[df['code'].values[idx]]=df['company'].values[idx] #�о�� ���̺��� �̿��� codes ��ųʸ��� �����.
File "C:\Users\chohjender\anaconda3\lib\site-packages\pandas\core\frame.py", line 3458, in getitem
indexer = self.columns.get_loc(key)
File "C:\Users\chohjender\anaconda3\lib\site-packages\pandas\core\indexes\base.py", line 3363, in get_loc
raise KeyError(key) from err
KeyError: 'code'
올려주신 네이버 웹스크롤 가능한 코드로 했는데 이런식으로 뜹니다. 혹시 조언해주실 수 있나요?
Traceback (most recent call last): File "C:\Users\chohjender\anaconda3\lib\site-packages\pandas\core\indexes\base.py", line 3361, in get_loc return self._engine.get_loc(casted_key) File "pandas_libs\index.pyx", line 76, in pandas._libs.index.IndexEngine.get_loc File "pandas_libs\index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc File "pandas_libs\hashtable_class_helper.pxi", line 5198, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas_libs\hashtable_class_helper.pxi", line 5206, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: 'code'
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "c:\myPackage\cho_DBUpdater.py", line 161, in
dbu = DBUpdater()
File "c:\myPackage\cho_DBUpdater.py", line 41, in init
self.update_comp_info()
File "c:\myPackage\cho_DBUpdater.py", line 57, in update_comp_info
self.codes[df['code'].values[idx]]=df['company'].values[idx] #�о�� ���̺��� �̿��� codes ��ųʸ��� �����.
File "C:\Users\chohjender\anaconda3\lib\site-packages\pandas\core\frame.py", line 3458, in getitem
indexer = self.columns.get_loc(key)
File "C:\Users\chohjender\anaconda3\lib\site-packages\pandas\core\indexes\base.py", line 3363, in get_loc
raise KeyError(key) from err
KeyError: 'code'