Last active
August 29, 2015 14:16
-
-
Save jnmclarty/aa56afde01e9fb7134b4 to your computer and use it in GitHub Desktop.
BoxPlot By Year
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vsf['year'] = [d.year for d in vsf.index] | |
vsf[['contribution_room','year']].boxplot(rot=90,by='year') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yrs = [str(d.year) for d in vsf.resample('A').index] | |
sd = {y[2:] : vsf[y]['contribution_room'] for y in yrs} | |
pd.DataFrame(sd).boxplot(rot=90,return_type='axes') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment