househusbend Feb 18th, 2020 83 Never
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[stock['item'] == 'Смартфон Xiaomi Redmi 6A 16GB']['count'].sum()
- huawei = stock[stock['item'] == 'Смартфон HUAWEI P30 lite']['count'].sum()
- #stock = stock.drop_duplicates('item').reset_index(drop=True)
RAW Paste Data