Skip to content

Commit baf7bfb

Browse files
mmckyclaude
andauthored
Repoint ols data reads to this repo's own copies (#966)
The three data reads in the lecture body (maketable1/2/4) still fetched from the retired QuantEcon/lecture-python repo, leaving this lecture dependent on a repo the series no longer maintains. Identical copies are already committed under lectures/_static/lecture_specific/ols/ and are already what the solutions read, so the body now uses them too and the URL form matches the solutions exactly. Verified byte-identical before repointing: sha256 of each own-repo copy matches the legacy-repo file, so lecture output is unchanged. Confirmed the new URLs serve those same bytes and that pd.read_stata() parses all three (163 rows each, expected columns present). Part of QuantEcon/meta#337 See QuantEcon/meta#336 Co-authored-by: Claude Fable 5 <[email protected]>
1 parent dc040e8 commit baf7bfb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎lectures/ols.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ These variables and other data used in the paper are available for download on D
9191
We will use pandas' `.read_stata()` function to read in data contained in the `.dta` files to dataframes
9292

9393
```{code-cell} python3
94-
df1 = pd.read_stata('https://github.com/QuantEcon/lecture-python/blob/master/source/_static/lecture_specific/ols/maketable1.dta?raw=true')
94+
df1 = pd.read_stata('https://github.com/QuantEcon/lecture-python.myst/raw/refs/heads/main/lectures/_static/lecture_specific/ols/maketable1.dta')
9595
df1.head()
9696
```
9797

@@ -323,7 +323,7 @@ Let's estimate some of the extended models considered in the paper
323323
(Table 2) using data from `maketable2.dta`
324324

325325
```{code-cell} python3
326-
df2 = pd.read_stata('https://github.com/QuantEcon/lecture-python/blob/master/source/_static/lecture_specific/ols/maketable2.dta?raw=true')
326+
df2 = pd.read_stata('https://github.com/QuantEcon/lecture-python.myst/raw/refs/heads/main/lectures/_static/lecture_specific/ols/maketable2.dta')
327327
328328
# Add constant term to dataset
329329
df2['const'] = 1
@@ -475,7 +475,7 @@ used for estimation)
475475

476476
```{code-cell} python3
477477
# Import and select the data
478-
df4 = pd.read_stata('https://github.com/QuantEcon/lecture-python/blob/master/source/_static/lecture_specific/ols/maketable4.dta?raw=true')
478+
df4 = pd.read_stata('https://github.com/QuantEcon/lecture-python.myst/raw/refs/heads/main/lectures/_static/lecture_specific/ols/maketable4.dta')
479479
df4 = df4[df4['baseco'] == 1]
480480
481481
# Add a constant variable

0 commit comments

Comments
 (0)