From 68a8922f2a6745e9c0998694b869d9bfc6bde67e Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Wed, 19 Aug 2026 12:28:09 +1000 Subject: [PATCH] Repair the #154 regeneration residue: repoint state and pandas_panel URL form MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Restore .translate/state/{pandas,polars}.md.yml to the versions #153 wrote (source-sha 55c87c9f, the Track D repoint) — #154 overwrote them with the stale snapshot's SHA (d35eb831), making isSourceChanged over-report both lectures as pending. Also revert the pandas_panel.md half of #155: the three data reads return to the raw.githubusercontent form, which is what source main itself serves at its last touch of that file — the regeneration's rewrite there was correct sync content, not stale damage. Measurement and ledger: QuantEcon/action-translation#276. Co-Authored-By: Claude Fable 5 --- .translate/state/pandas.md.yml | 2 +- .translate/state/polars.md.yml | 2 +- lectures/pandas_panel.md | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.translate/state/pandas.md.yml b/.translate/state/pandas.md.yml index 53a3418..322727c 100644 --- a/.translate/state/pandas.md.yml +++ b/.translate/state/pandas.md.yml @@ -1,4 +1,4 @@ -source-sha: d35eb831da23a763f43d403e96f20d43529cae53 +source-sha: 55c87c9fdbdb522866c5b6bbdc65c073941d7f16 synced-at: "2026-08-18" model: claude-sonnet-5 mode: UPDATE diff --git a/.translate/state/polars.md.yml b/.translate/state/polars.md.yml index 2069697..81b3af0 100644 --- a/.translate/state/polars.md.yml +++ b/.translate/state/polars.md.yml @@ -1,4 +1,4 @@ -source-sha: d35eb831da23a763f43d403e96f20d43529cae53 +source-sha: 55c87c9fdbdb522866c5b6bbdc65c073941d7f16 synced-at: "2026-08-18" model: claude-sonnet-5 mode: UPDATE diff --git a/lectures/pandas_panel.md b/lectures/pandas_panel.md index b349146..260f9db 100644 --- a/lectures/pandas_panel.md +++ b/lectures/pandas_panel.md @@ -81,7 +81,7 @@ sns.set_theme() مجموعه داده با لینک زیر قابل دسترسی است: ```{code-cell} ipython3 -url1 = 'https://github.com/QuantEcon/data-lectures/raw/main/lectures/realwage.csv' +url1 = 'https://raw.githubusercontent.com/QuantEcon/data-lectures/main/lectures/realwage.csv' ``` ```{code-cell} ipython3 @@ -183,7 +183,7 @@ realwage_f.head() مجموعه داده با لینک زیر قابل دسترسی است: ```{code-cell} ipython3 -url2 = 'https://github.com/QuantEcon/data-lectures/raw/main/lectures/countries.csv' +url2 = 'https://raw.githubusercontent.com/QuantEcon/data-lectures/main/lectures/countries.csv' ``` ```{code-cell} ipython3 @@ -451,7 +451,7 @@ plt.show() مجموعه داده با لینک زیر قابل دسترسی است: ```{code-cell} ipython3 -url3 = 'https://github.com/QuantEcon/data-lectures/raw/main/lectures/employ.csv' +url3 = 'https://raw.githubusercontent.com/QuantEcon/data-lectures/main/lectures/employ.csv' ``` خواندن فایل CSV یک مجموعه داده پانلی در فرمت طولانی را برمی‌گرداند. از `.pivot_table()` برای ساخت یک dataframe با فرمت عریض با یک `MultiIndex` در ستون‌ها استفاده کنید.