Skip to content

Instantly share code, notes, and snippets.

@kxzk
Created August 9, 2019 21:36
Show Gist options
  • Save kxzk/2c1cdbeeefdcd3e2603a639bd2613b87 to your computer and use it in GitHub Desktop.
Save kxzk/2c1cdbeeefdcd3e2603a639bd2613b87 to your computer and use it in GitHub Desktop.
df.sort_values(by = "variable").groupby("dimension").first()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment