Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Created March 18, 2020 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aniruddha27/57e82aa55d70a60bedc494fbee16b4e9 to your computer and use it in GitHub Desktop.
Save aniruddha27/57e82aa55d70a60bedc494fbee16b4e9 to your computer and use it in GitHub Desktop.
df.groupby(['Outlet_Type','Item_Type']).agg(mean_MRP=('Item_MRP',np.mean),mean_Sales=('Item_Outlet_Sales',np.mean))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment