Skip to content

Instantly share code, notes, and snippets.

@yanak
Created February 22, 2019 00:26
Show Gist options
  • Save yanak/5b2514f8549df7a2c0decf408f107f65 to your computer and use it in GitHub Desktop.
Save yanak/5b2514f8549df7a2c0decf408f107f65 to your computer and use it in GitHub Desktop.
data = pd.read_json('data.json')
data.groupby(['id', 'product_id']).nunique().sort_values(by='align_id', ascending=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment