Skip to content

Commit 76022e8

Browse files
mmckyclaude
andauthored
Restore the repointed data URLs reverted by the #154 regeneration (#155)
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 <[email protected]>
1 parent 1bceccd commit 76022e8

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

‎lectures/pandas_panel.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ sns.set_theme()
8181
مجموعه داده با لینک زیر قابل دسترسی است:
8282

8383
```{code-cell} ipython3
84-
url1 = 'https://raw.githubusercontent.com/QuantEcon/data-lectures/main/lectures/realwage.csv'
84+
url1 = 'https://github.com/QuantEcon/data-lectures/raw/main/lectures/realwage.csv'
8585
```
8686

8787
```{code-cell} ipython3
@@ -183,7 +183,7 @@ realwage_f.head()
183183
مجموعه داده با لینک زیر قابل دسترسی است:
184184

185185
```{code-cell} ipython3
186-
url2 = 'https://raw.githubusercontent.com/QuantEcon/data-lectures/main/lectures/countries.csv'
186+
url2 = 'https://github.com/QuantEcon/data-lectures/raw/main/lectures/countries.csv'
187187
```
188188

189189
```{code-cell} ipython3
@@ -451,7 +451,7 @@ plt.show()
451451
مجموعه داده با لینک زیر قابل دسترسی است:
452452

453453
```{code-cell} ipython3
454-
url3 = 'https://raw.githubusercontent.com/QuantEcon/data-lectures/main/lectures/employ.csv'
454+
url3 = 'https://github.com/QuantEcon/data-lectures/raw/main/lectures/employ.csv'
455455
```
456456

457457
خواندن فایل CSV یک مجموعه داده پانلی در فرمت طولانی را برمی‌گرداند. از `.pivot_table()` برای ساخت یک dataframe با فرمت عریض با یک `MultiIndex` در ستون‌ها استفاده کنید.

‎lectures/polars.md‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,7 @@ plt.show()
359359

360360
```{code-cell} ipython3
361361
# Reload the dataset
362-
url = ('https://raw.githubusercontent.com/QuantEcon/'
363-
'lecture-python-programming/main/lectures/_static/'
364-
'lecture_specific/pandas/data/test_pwt.csv')
362+
url = 'https://github.com/QuantEcon/data-lectures/raw/main/lectures/test_pwt.csv'
365363
df_full = pl.read_csv(url)
366364
```
367365

@@ -437,9 +435,7 @@ import pandas as pd
437435
import time
438436
439437
# Small dataset -- Penn World Tables (~8 rows)
440-
url = ('https://raw.githubusercontent.com/QuantEcon/'
441-
'lecture-python-programming/main/lectures/_static/'
442-
'lecture_specific/pandas/data/test_pwt.csv')
438+
url = 'https://github.com/QuantEcon/data-lectures/raw/main/lectures/test_pwt.csv'
443439
small_pd = pd.read_csv(url)
444440
small_pl = pl.read_csv(url)
445441
```

0 commit comments

Comments
 (0)