Skip to content

Instantly share code, notes, and snippets.

@mvervuurt
Created August 29, 2019 13:30
Show Gist options
  • Save mvervuurt/e659028bacb5f29ace88d2d3be979137 to your computer and use it in GitHub Desktop.
Save mvervuurt/e659028bacb5f29ace88d2d3be979137 to your computer and use it in GitHub Desktop.
Plotting horizontal lines to identify seasonality
ax = df1['total'].plot(figsize=(16,5),title=title)
ax.autoscale(axis='x',tight=True)
ax.set(xlabel=xlabel, ylabel=ylabel)
for x in df1.query('holiday==1').index:
ax.axvline(x=x, color='k', alpha = 0.3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment