diff --git a/lectures/inequality.md b/lectures/inequality.md index 767891d..d2a6719 100644 --- a/lectures/inequality.md +++ b/lectures/inequality.md @@ -247,7 +247,7 @@ The following code block imports a subset of the dataset `SCF_plus` for 2016, which is derived from the [Survey of Consumer Finances](https://en.wikipedia.org/wiki/Survey_of_Consumer_Finances) (SCF). ```{code-cell} ipython3 -url = 'https://github.com/QuantEcon/high_dim_data/raw/main/SCF_plus/SCF_plus_mini.csv' +url = 'https://media.githubusercontent.com/media/QuantEcon/high_dim_data/main/SCF_plus/SCF_plus_mini.csv' df = pd.read_csv(url) df_income_wealth = df.dropna() ``` diff --git a/lectures/inflation_history.md b/lectures/inflation_history.md index dda01f4..8fa05f9 100644 --- a/lectures/inflation_history.md +++ b/lectures/inflation_history.md @@ -73,7 +73,7 @@ Let us bring the data into pandas from a spreadsheet that is [hosted on GitHub]( ```{code-cell} ipython3 # Import data and clean up the index pyodide_http.patch_all() -data_url = "https://github.com/QuantEcon/data-lectures/raw/main/lectures/longprices.xls" +data_url = "https://raw.githubusercontent.com/QuantEcon/data-lectures/main/lectures/longprices.xls" df_fig5 = pd.read_excel(data_url, sheet_name='all', header=2, @@ -347,7 +347,7 @@ We prepare the data for each country ```{code-cell} ipython3 # Import data -data_url = "https://github.com/QuantEcon/data-lectures/raw/main/lectures/chapter_3.xlsx" +data_url = "https://raw.githubusercontent.com/QuantEcon/data-lectures/main/lectures/chapter_3.xlsx" xls = pd.ExcelFile(data_url) # Select relevant sheets diff --git a/lectures/long_run_growth.md b/lectures/long_run_growth.md index 854400c..21aaa7a 100644 --- a/lectures/long_run_growth.md +++ b/lectures/long_run_growth.md @@ -94,7 +94,7 @@ Here we read the Maddison data into a pandas `DataFrame`: ```{code-cell} ipython3 pyodide_http.patch_all() -data_url = "https://github.com/QuantEcon/data-lectures/raw/main/lectures/mpd2020.xlsx" +data_url = "https://raw.githubusercontent.com/QuantEcon/data-lectures/main/lectures/mpd2020.xlsx" data = pd.read_excel(data_url, sheet_name='Full data') data.head() diff --git a/lectures/mle.md b/lectures/mle.md index a21e222..d2de7b2 100644 --- a/lectures/mle.md +++ b/lectures/mle.md @@ -92,7 +92,7 @@ The following code imports this data and reads it into an array called `sample` ```{code-cell} ipython3 :tags: [hide-input] -url = 'https://github.com/QuantEcon/high_dim_data/raw/main/SCF_plus/SCF_plus_mini_no_weights.csv' +url = 'https://media.githubusercontent.com/media/QuantEcon/high_dim_data/main/SCF_plus/SCF_plus_mini_no_weights.csv' df = pd.read_csv(url) df = df.dropna() df = df[df['year'] == 2016]