text_plain_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

sales = pd.read_csv('/kaggle/input/retail-business-sales-20172019/business.retailsales.csv', index_col=0)

sales.columns

sales.shape

sales.loc['Basket']

sales.loc['Basket']['Returns']

sales.sum()

sales.loc['Basket'].sum()

sales.loc['Basket'].mean()

sales.groupby('Product Type').sum()

sales.groupby('Product Type')['Returns'].sum().sort_values()

sales.groupby('Product Type').size()

sales.groupby('Product Type').size().plot()

sales.groupby('Product Type').size().plot.pie()