Вверх ↑
Ответов: 143
Рейтинг: 0
#1: 2025-03-07 16:27:12 ЛС | профиль | цитата
tig-rrr, У меня вот тоже Windows 11. Вот ошибка какая:
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python313\Lib\site-packages\pandas\core\indexes\base.py", line 3805, in get_loc
return self._engine.get_loc(casted_key)
File "index.pyx", line 167, in pandas._libs.index.IndexEngine.get_loc
File "index.pyx", line 196, in pandas._libs.index.IndexEngine.get_loc
File "pandas\\_libs\\hashtable_class_helper.pxi", line 7081, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas\\_libs\\hashtable_class_helper.pxi", line 7089, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'Группа оборудования'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\User\Desktop\1.py", line 21, in <module>
'Группа': str(row['Группа оборудования']),
File "C:\Users\User\AppData\Local\Programs\Python\Python313\Lib\site-packages\pandas\core\series.py", line 1121, in __getitem__
return self._get_value(key)
File "C:\Users\User\AppData\Local\Programs\Python\Python313\Lib\site-packages\pandas\core\series.py", line 1237, in _get_value
loc = self.index.get_loc(label)
File "C:\Users\User\AppData\Local\Programs\Python\Python313\Lib\site-packages\pandas\core\indexes\base.py", line 3812, in get_loc
raise KeyError(key) from err
KeyError: 'Группа оборудования'
карма: 1

0
Редактировалось 1 раз(а), последний 2025-03-07 16:30:42