Code: Select all
## df_comb is a union of the combined datasets on kaggle w/ year month added in as date
total_sales = df_comb.groupby(['Description','YearMonth'])['Quantity'].sum()
< /code>
Dies gibt < /p>
zurückDescription YearMonth
DOORMAT UNION JACK GUNS AND ROSES 2010-01 150
2010-02 5
2010-03 14
3 STRIPEY MICE FELTCRAFT 2009-12 261
2010-01 64
...
ZINC WIRE SWEETHEART LETTER TRAY 2011-08 1
2011-09 2
2011-10 8
2011-11 9
2011-12 13
Name: Quantity, Length: 61768, dtype: int64