Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sebastianmurillonader/690a954c11eeeaf0eb535d9a8691fdcb to your computer and use it in GitHub Desktop.
Save sebastianmurillonader/690a954c11eeeaf0eb535d9a8691fdcb to your computer and use it in GitHub Desktop.
#Group data by one variable.
df_group = df.groupby('Proceso').agg(
UX = ('UX', sum),
Impacto = ('Impacto', sum),
Uso = ('Uso', sum),
Implementación = ('Implementación', sum),
Prioridad = ('Prioridad', sum)
).reset_index()
df_group.head(20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment