Skip to content

Instantly share code, notes, and snippets.

@mvervuurt
Created August 27, 2019 10:13
Show Gist options
  • Save mvervuurt/04aada527696f9293fffecc29b2e6cee to your computer and use it in GitHub Desktop.
Save mvervuurt/04aada527696f9293fffecc29b2e6cee to your computer and use it in GitHub Desktop.
Statsmodels datasets and using sm datetools
import pandas as pd
import statsmodels.api as sm
df = sm.datasets.macrodata.load_pandas().data
df.index = pd.Index(sm.tsa.datetools.dates_from_range('1959Q1', '2009Q3'))
print(sm.datasets.macrodata.NOTE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment