Skip to content

Instantly share code, notes, and snippets.

@fonnesbeck
Created May 2, 2016 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fonnesbeck/6ff3f8a2c4a75386a2c97779e8621757 to your computer and use it in GitHub Desktop.
Save fonnesbeck/6ff3f8a2c4a75386a2c97779e8621757 to your computer and use it in GitHub Desktop.
Iterating over a DataFrame groupby
for (k, v), ax in itertools.izip(df.groupby('cats'), axs.flat):
v.boxplot(column='weight', ax=ax)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment