123456789101112131415161718192021222324252627 |
- 2022-04-27 21:10:03,244 - ERROR - (KeyError('factory'),)
- 2022-04-27 21:10:03,629 - ERROR - Traceback (most recent call last):
- File "C:\Users\NING MEI\AppData\Local\Programs\Python\Python38-32\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: 'factory'
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "d:\01WorkSpace\python\data_analyze_platform\USER\SPF\alibaba\08BatCrtl\main.py", line 53, in ctrl_cal
- df_ram_rlyctrl, df_ram_statectrl=BatCrtl.bat_crtl()
- File "d:\01WorkSpace\python\data_analyze_platform\USER\SPF\alibaba\08BatCrtl\CBMSBatCtrl.py", line 34, in bat_crtl
- df_res1=self._bat_rlycrtl()
- File "d:\01WorkSpace\python\data_analyze_platform\USER\SPF\alibaba\08BatCrtl\CBMSBatCtrl.py", line 56, in _bat_rlycrtl
- factory=self.df_bms.iloc[0]['factory']
- File "C:\Users\NING MEI\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\series.py", line 942, in __getitem__
- return self._get_value(key)
- File "C:\Users\NING MEI\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\series.py", line 1051, in _get_value
- loc = self.index.get_loc(label)
- File "C:\Users\NING MEI\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\indexes\base.py", line 3363, in get_loc
- raise KeyError(key) from err
- KeyError: 'factory'
|