Skip to content

Instantly share code, notes, and snippets.

@FelixChop
Created August 15, 2018 10:01
Show Gist options
  • Select an option

  • Save FelixChop/a332ae6f3458963dbfd733f25f65ca38 to your computer and use it in GitHub Desktop.

Select an option

Save FelixChop/a332ae6f3458963dbfd733f25f65ca38 to your computer and use it in GitHub Desktop.
data.groupby('column_1')['column_2'].apply(sum).reset_index()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment