Skip to content

Commit 85586e6

Browse files
mmckyclaude
andauthored
[pandas_panel] Describe the single .replace() call, not a loop (#645)
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 <noreply@anthropic.com>
1 parent fd78a02 commit 85586e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lectures/pandas_panel.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ merged[merged['Country'] == 'Korea']
305305

306306
We will also combine the Americas into a single continent - this will make our visualization nicer later on.
307307

308-
To do this, we will use `.replace()` and loop through a list of the continent values we want to replace
308+
To do this, we will use `.replace()` with a list of the continent values we want to replace.
309309

310310
```{code-cell} ipython3
311311
replace = ['Central America', 'North America', 'South America']

0 commit comments

Comments
 (0)