... description = str(df[df['Изображение'] == img.strip('.png')]['Пояснения'].values[0]) ... C:\...\Python38-32\lib\site-packages\pandas\core\ops\array_ops.py:253: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison res_values = method(rvalues) Traceback (most recent call last): File "...Ot4et.py", line 39, in description = str(df[df['Изображение'] == img.strip('.png')]['Пояснения'].values[0]) IndexError: index 0 is out of bounds for axis 0 with size 0
...
description = str(df[df['Изображение'] == img.strip('.png')]['Пояснения'].values[0])
...
C:\...\Python38-32\lib\site-packages\pandas\core\ops\array_ops.py:253: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison
res_values = method(rvalues)
Traceback (most recent call last):
File "...Ot4et.py", line 39, in
description = str(df[df['Изображение'] == img.strip('.png')]['Пояснения'].values[0])
IndexError: index 0 is out of bounds for axis 0 with size 0
В чем ошибка подскажите?