Skip to content

Instantly share code, notes, and snippets.

@tomonori-masui
Created July 3, 2021 17:59
Show Gist options
  • Select an option

  • Save tomonori-masui/d7f1cae11fc8d655216c764918bce85b to your computer and use it in GitHub Desktop.

Select an option

Save tomonori-masui/d7f1cae11fc8d655216c764918bce85b to your computer and use it in GitHub Desktop.
import requests
from io import BytesIO
wpi1 = requests.get("https://www.stata-press.com/data/r12/wpi1.dta").content
data = pd.read_stata(BytesIO(wpi1))
ts_wpi = data.set_index("t").wpi
tsplot(ts_wpi)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment