Skip to content

Instantly share code, notes, and snippets.

@ashwinprasadme
Last active December 15, 2020 11:07
Show Gist options
  • Save ashwinprasadme/1f68e654a8125ba32f9cdf1f62c4aef4 to your computer and use it in GitHub Desktop.
Save ashwinprasadme/1f68e654a8125ba32f9cdf1f62c4aef4 to your computer and use it in GitHub Desktop.
df = df[df.symbol == 'GOOG']
df.drop(['symbol'],1,inplace=True)
df.head()
monthly_series = train_monthly.pivot_table(index=['shop_id', 'item_id'], columns='date_block_num',values='item_cnt', fill_value=0).reset_index()
monthly_series.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment