import pandas as pd stock = pd.read_excel('/datasets/stock.xlsx', sheet_name='storehouse') xiaomi = stock[stock['item'] == 'Смартфон Xiaomi Redmi 6A 16GB']['count'].sum() print(xiaomi)