Skip to content

Retire the last references to the retired lecture-python repo#968

Merged
mmcky merged 1 commit into
mainfrom
data/retire-legacy-lecture-python-refs
Jul 16, 2026
Merged

Retire the last references to the retired lecture-python repo#968
mmcky merged 1 commit into
mainfrom
data/retire-legacy-lecture-python-refs

Conversation

@mmcky

@mmcky mmcky commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

After this, nothing in this repo references QuantEcon/lecture-python any more — the repo it was migrated from, last touched 2022-01-21. Follows #966, which did the ols half.

pandas_panel — two of three reads were still remote

The lecture read realwage.csv and countries.csv from the retired repo while reading employ.csv — the third file of the same trio, in the same lecture — from this repo's own copy. All three copies are already committed under _static/lecture_specific/pandas_panel/, so two of the reads were reaching for a four-year-dead repo for no reason. Now all three are consistent and use the same URL form.

troubleshooting — sent readers to the wrong issue tracker

It asked readers to report problems with this lecture series by opening an issue on QuantEcon/lecture-python — which still has issues enabled, so reports would land in a repo nobody watches. Repointed at this repo's tracker, matching the sibling lecture repos.

Verification

File own-repo copy legacy repo new URL serves
realwage.csv identical identical identical
countries.csv identical identical identical
employ.csv identical identical identical

sha256-compared before repointing, so lecture output cannot change. All three also confirmed readable over https from the new URLs.

This is deliberately interim — and it costs P2 nothing

The plan in QuantEcon/workspace-lectures#14 says to skip pandas_panel because pilot P2 (QuantEcon/meta#338) migrates this trio to QuantEcon/data-lectures, making an interim repoint churn. That reasoning is sound but the arithmetic changed:

  • P2 rewrites these three lines regardless of whether they say "legacy" or "own-repo" today, so this adds no work to it.
  • P2 got materially further away. It was scoped as 2 repos / 5 references; an audit today found the pandas_panel trio is consumed by 6 source repos / 17 references — the translations (lecture-python.zh-cn, lecture-python-programming.{fa,fr,zh-cn}) each carry their own copy of the lecture and were never counted.
  • Meanwhile the dependency is a real one on an unmaintained repo. That is the same shape as the bug Lecture data: fix live hosting risks and bring high_dim_data into shape meta#337 risk 1 just cost us: a data URL nobody was watching, which broke the moment its target moved.

Happy to close this and wait for P2 if you'd rather hold the line on the original plan — it is two lines either way.

Part of QuantEcon/meta#337
See QuantEcon/meta#336

Nothing in this repo points at QuantEcon/lecture-python any more.

pandas_panel read realwage.csv and countries.csv from that repo while reading
employ.csv — the third file in the same trio, in the same lecture — from this
repo's own copy. All three copies are already committed under
_static/lecture_specific/pandas_panel/, so two of the three reads were
fetching from a repo last touched in January 2022 for no reason. Now all three
are consistent and use the same URL form.

troubleshooting pointed readers at that same dead repo's issue tracker to
report problems with this one. Repointed at this repo's issues, matching what
the sibling lecture repos do.

Verified byte-identical before repointing: each own-repo copy has the same
sha256 as the legacy file it replaces, and the new URLs serve those same
bytes, so lecture output cannot change.

Note this is deliberately an interim step. P2 of the datasets pilot migrates
this trio to QuantEcon/data-lectures and will rewrite these three lines again
— but it rewrites them whether they say "legacy" or "own-repo" today, so this
costs P2 nothing and stops the lecture depending on an unmaintained repo in
the meantime.

Part of QuantEcon/meta#337
See QuantEcon/meta#336

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 16, 2026 01:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the remaining references to the retired QuantEcon/lecture-python repository by updating lecture content to consistently point at this repository’s own assets and issue tracker.

Changes:

  • Update pandas_panel dataset URLs to load realwage.csv and countries.csv from QuantEcon/lecture-python.myst (matching the existing employ.csv pattern).
  • Update the troubleshooting guide’s “Reporting an Issue” link to point to QuantEcon/lecture-python.myst/issues.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
lectures/pandas_panel.md Repoints legacy raw GitHub URLs to this repo’s lectures/_static/lecture_specific/pandas_panel/ copies for consistent data loading.
lectures/troubleshooting.md Fixes issue-tracker link to direct users to the correct repository.

@github-actions

Copy link
Copy Markdown

📖 Netlify Preview Ready!

Preview URL: https://pr-968--sunny-cactus-210e3e.netlify.app

Commit: 4257529

📚 Changed Lectures


Build Info

@mmcky mmcky merged commit d406800 into main Jul 16, 2026
2 checks passed
@mmcky mmcky deleted the data/retire-legacy-lecture-python-refs branch July 16, 2026 03:36
mmcky added a commit to QuantEcon/lecture-python-programming that referenced this pull request Jul 16, 2026
* Retire the last references to the retired lecture-python repo

pandas_panel read all three of realwage.csv, countries.csv and employ.csv from
QuantEcon/lecture-python — a repo last touched in January 2022 — even though
this repo already has its own committed copies of all three under
_static/lecture_specific/pandas_panel/. Now it reads its own.

Verified byte-identical before repointing: each own-repo copy has the same
sha256 as the legacy file it replaces, and the new URLs serve those same
bytes, so lecture output cannot change.

Mirrors QuantEcon/lecture-python.myst#968, which did the same for the myst
series. With this, no English lecture source in the Python family points at
the retired repo except lecture-stats.

Interim by design: P2 of the datasets pilot migrates this trio to
QuantEcon/data-lectures and will rewrite these three lines again — but it
rewrites them either way, so this costs P2 nothing and stops the lecture
depending on an unmaintained repo meanwhile.

Part of QuantEcon/meta#337
See QuantEcon/meta#336

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* Use this repo's existing raw.githubusercontent URL form

Addresses Copilot review on #576. The repoint used
github.com/.../raw/refs/heads/main/..., which introduced a third URL form into
a repo that already had one: pandas.md and the other own-data reads all use
raw.githubusercontent.com/.../main/.... Now all five own-data URLs match.

Both forms fetch these files correctly — checked, they parse to identical
frames — so this is about consistency, not correctness. Copilot's stated reason
(that the redirect makes /raw/ less reliable for read_csv) does not hold; the
redirect is real but pandas follows it.

The one thing /raw/ buys is LFS safety: raw.githubusercontent.com serves
pointer text rather than data for LFS-tracked files. That does not apply here —
this repo has no .gitattributes, nothing is LFS — and these three files move to
data-lectures under pilot P2 regardless, which is where the LFS-safe form
actually matters.

Part of QuantEcon/meta#337

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants