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

avocado = pd.read_csv('../input/avocados/Avocado.csv')
avocado

avocado.index

avocado.columns

avocado.shape

avo_data = avocado.groupby(['year']).Small_Bags.sum()
avocado.groupby(['year']).Small_Bags.sum()

avocado.groupby(['year']).Small_Bags.mean()

avocado.groupby(['year']).Small_Bags.median()

avocado.groupby(['year']).Small_Bags.std()

avocado.groupby(['year']).Small_Bags.size()

avocado.groupby(['year']).Small_Bags.value_counts()

new_avo = avocado.groupby('year')['Small_Bags', 'Large_Bags'].sum()
new_avo

new_avo.loc[2015]

new_avo.iloc[1, 1]