Skip to content

Instantly share code, notes, and snippets.

@alexrutherford
Created July 16, 2014 21:03
Show Gist options
  • Save alexrutherford/8cc6f6671737a5d7dafe to your computer and use it in GitHub Desktop.
Save alexrutherford/8cc6f6671737a5d7dafe to your computer and use it in GitHub Desktop.
Plot a set of time series from a dataframe with categories (in this case topics)
for a,b in df.groupby('topics'):
b.resample('D',how='count')['content'].plot(label=a,legend=True,figsize=(20,10),logy=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment