Skip to content

Instantly share code, notes, and snippets.

@alexrios22
Created November 22, 2020 21:57
Show Gist options
  • Save alexrios22/1c9984c3652c1715b36aef27bee7d8e1 to your computer and use it in GitHub Desktop.
Save alexrios22/1c9984c3652c1715b36aef27bee7d8e1 to your computer and use it in GitHub Desktop.
BoxplotTrend.ibpynb
Monthly_Returns = ratesD.groupby([ratesD.index.year.rename('year'),
ratesD.index.month.rename('month')]
).median().to_frame("Returns")
Monthly_Returns.boxplot(by='month', figsize=(16, 8));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment