From 96ab180d9a64ac0c6cb6fbc760a0b29b6e7f5dcb Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Tue, 18 Aug 2026 13:53:56 +1000 Subject: [PATCH] Restore the repointed data URLs reverted by the #154 regeneration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The #154 sync was regenerated from its source PR's merge-time snapshot, which predates the test_pwt repoint synced here in #153 — so it reverted two polars.md reads to the source repo's old own-repo URL (a path scheduled for deletion) and rewrote three pandas_panel.md reads to the raw.githubusercontent host form. This restores all five reads to the canonical data-lectures form the English source uses. URL-only; no translated text changes. The underlying regeneration defect is recorded in QuantEcon/action-translation#276. Co-Authored-By: Claude Fable 5 --- lectures/pandas_panel.md | 6 +++--- lectures/polars.md | 8 ++------ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/lectures/pandas_panel.md b/lectures/pandas_panel.md index 260f9db..b349146 100644 --- a/lectures/pandas_panel.md +++ b/lectures/pandas_panel.md @@ -81,7 +81,7 @@ sns.set_theme() مجموعه داده با لینک زیر قابل دسترسی است: ```{code-cell} ipython3 -url1 = 'https://raw.githubusercontent.com/QuantEcon/data-lectures/main/lectures/realwage.csv' +url1 = 'https://github.com/QuantEcon/data-lectures/raw/main/lectures/realwage.csv' ``` ```{code-cell} ipython3 @@ -183,7 +183,7 @@ realwage_f.head() مجموعه داده با لینک زیر قابل دسترسی است: ```{code-cell} ipython3 -url2 = 'https://raw.githubusercontent.com/QuantEcon/data-lectures/main/lectures/countries.csv' +url2 = 'https://github.com/QuantEcon/data-lectures/raw/main/lectures/countries.csv' ``` ```{code-cell} ipython3 @@ -451,7 +451,7 @@ plt.show() مجموعه داده با لینک زیر قابل دسترسی است: ```{code-cell} ipython3 -url3 = 'https://raw.githubusercontent.com/QuantEcon/data-lectures/main/lectures/employ.csv' +url3 = 'https://github.com/QuantEcon/data-lectures/raw/main/lectures/employ.csv' ``` خواندن فایل CSV یک مجموعه داده پانلی در فرمت طولانی را برمی‌گرداند. از `.pivot_table()` برای ساخت یک dataframe با فرمت عریض با یک `MultiIndex` در ستون‌ها استفاده کنید. diff --git a/lectures/polars.md b/lectures/polars.md index abd4378..dca820f 100644 --- a/lectures/polars.md +++ b/lectures/polars.md @@ -359,9 +359,7 @@ plt.show() ```{code-cell} ipython3 # Reload the dataset -url = ('https://raw.githubusercontent.com/QuantEcon/' - 'lecture-python-programming/main/lectures/_static/' - 'lecture_specific/pandas/data/test_pwt.csv') +url = 'https://github.com/QuantEcon/data-lectures/raw/main/lectures/test_pwt.csv' df_full = pl.read_csv(url) ``` @@ -437,9 +435,7 @@ import pandas as pd import time # Small dataset -- Penn World Tables (~8 rows) -url = ('https://raw.githubusercontent.com/QuantEcon/' - 'lecture-python-programming/main/lectures/_static/' - 'lecture_specific/pandas/data/test_pwt.csv') +url = 'https://github.com/QuantEcon/data-lectures/raw/main/lectures/test_pwt.csv' small_pd = pd.read_csv(url) small_pl = pl.read_csv(url) ```