Fix broken raw GitHub URLs for CSV data files#491
Merged
Conversation
The repo restructure (drop .myst suffix, master→main) broke two raw.githubusercontent.com URLs used in code cells: - pandas.md: test_pwt.csv → 404 (causes cache build failure) - python_advanced_features.md: test_table.csv → 404 Updated both from the old path: master/source/_static/lecture_specific/... to the current path: main/lectures/_static/lecture_specific/...
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes broken raw.githubusercontent.com links in QuantEcon’s lecture content so that examples referencing CSV data files resolve correctly after the repository restructure (master→main, source/_static→lectures/_static).
Changes:
- Update the
test_table.csvraw GitHub URL inlectures/python_advanced_features.mdto the current branch/path. - Update the
test_pwt.csvraw GitHub URL inlectures/pandas.mdto the current branch/path (addresses the reported cache build failure).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
lectures/python_advanced_features.md |
Fixes the raw GitHub download URL for test_table.csv used in an exercise. |
lectures/pandas.md |
Fixes the raw GitHub URL used by pd.read_csv(...) to fetch test_pwt.csv. |
Contributor
Author
|
\translate-resync |
Contributor
Author
✅ Translation sync completed (zh-cn)Target repo: QuantEcon/lecture-python-programming.zh-cn
|
Contributor
Author
✅ Translation sync completed (fa)Target repo: QuantEcon/lecture-python-programming.fa
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The cache build is failing because
pandas.mdtries to fetchtest_pwt.csvfrom a URL that no longer exists:This returns 404 because the repo was restructured (the
.mystsuffix was dropped andmasterbecamemain,source/_staticbecamelectures/_static).Failed run: https://github.com/QuantEcon/lecture-python-programming/actions/runs/23420771220/job/68125163471
Fix
Updated two broken
raw.githubusercontent.comURLs from the old path to the current one:lectures/pandas.mdtest_pwt.csvURL — this causes the cache build failurelectures/python_advanced_features.mdtest_table.csvURL — also broken (404)Old pattern:
master/source/_static/lecture_specific/...New pattern:
main/lectures/_static/lecture_specific/...Both updated URLs have been verified to return HTTP 200.