Skip to content

Instantly share code, notes, and snippets.

@fyyying
Last active June 13, 2020 13:04
Show Gist options
  • Save fyyying/48519b1b6b532f1fda92052321d52da4 to your computer and use it in GitHub Desktop.
Save fyyying/48519b1b6b532f1fda92052321d52da4 to your computer and use it in GitHub Desktop.
# Groupby product and check the profitability
cf_with_rate_df = cf_with_rate_df.groupby("Product")[["Present value"]].sum().reset_index()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment