File "D:Anaconda3libsite-packagespandascoreindexesbase.py", line 3361, in get_loc
return self._engine.get_loc(casted_key)
File "pandas_libsindex.pyx", line 76, in pandas._libs.index.IndexEngine.get_loc
File "pandas_libsindex.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc
File "pandas_libshashtable_class_helper.pxi", line 5198, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas_libshashtable_class_helper.pxi", line 5206, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'DataValue'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:Usersw84233872DesktopUT_CC_20220110.py", line 23, in
for k in range(int(len(df[df.columns[0]]["DataValue"])/count)):
File "D:Anaconda3libsite-packagespandascoreseries.py", line 942, in __getitem__
return self._get_value(key)
File "D:Anaconda3libsite-packagespandascoreseries.py", line 1051, in _get_value
loc = self.index.get_loc(label)
File "D:Anaconda3libsite-packagespandascoreindexesbase.py", line 3363, in get_loc
raise KeyError(key) from err
KeyError: 'DataValue'



