From 3f11af06a8362bfd4aa6bb5c2719e656ea36bd54 Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Mon, 12 Oct 2026 12:27:47 +1100 Subject: [PATCH] [pandas_panel] Describe the single .replace() call, not a loop The pandas 3.0 update replaced the loop over continent names with one .replace() call taking the whole list, but the sentence above it still said we "loop through a list". Say what the code does, and end the sentence with a full stop. Intermediate publishes this lecture too; its copy takes the same change in QuantEcon/lecture-python.myst#1088, so the two stay byte-identical. Co-Authored-By: Claude Opus 5.5 --- lectures/pandas_panel.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/pandas_panel.md b/lectures/pandas_panel.md index 383220d3..37eb7f82 100644 --- a/lectures/pandas_panel.md +++ b/lectures/pandas_panel.md @@ -305,7 +305,7 @@ merged[merged['Country'] == 'Korea'] We will also combine the Americas into a single continent - this will make our visualization nicer later on. -To do this, we will use `.replace()` and loop through a list of the continent values we want to replace +To do this, we will use `.replace()` with a list of the continent values we want to replace. ```{code-cell} ipython3 replace = ['Central America', 'North America', 'South America']