Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- stock = pd.read_excel('/datasets/stock.xlsx', sheet_name='storehouse')
- xiaomi = stock.loc[stock['item'] == 'Смартфон Xiaomi Redmi 6A 16GB']['count'].sum()
- # print(xiaomi)
- huawei = stock.loc[stock['item'] == 'Смартфон HUAWEI P30 lite']['count'].sum()
- #print(huawei)
- stock = stock['item'].drop_duplicates()
- print(stock)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement