Created
August 29, 2019 13:30
-
-
Save mvervuurt/e659028bacb5f29ace88d2d3be979137 to your computer and use it in GitHub Desktop.
Plotting horizontal lines to identify seasonality
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
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