Skip to content

Commit 4f81ab6

Browse files
mmckyclaude
andcommitted
Address Copilot grammar feedback
- pandas: "replace the rest rows" -> "replace the remaining rows" - pandas_panel: add commas around the introductory phrase / before "as" to fix the run-on sentence about groupby axis=1 removal Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 12c275c commit 4f81ab6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lectures/pandas.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ df.loc[complexCondition]
349349
The ability to make changes in dataframes is important to generate a clean dataset for future analysis.
350350

351351

352-
**1.** We can use `df.where()` conveniently to "keep" the rows we have selected and replace the rest rows with `NaN`
352+
**1.** We can use `df.where()` conveniently to "keep" the rows we have selected and replace the remaining rows with `NaN`
353353

354354
```{code-cell} ipython3
355355
df.where(df.POP >= 20000)

lectures/pandas_panel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ plt.show()
401401
We can also specify a level of the `MultiIndex` (in the column axis)
402402
to aggregate over.
403403

404-
In the case of `groupby` we need to use `.T` to transpose the columns into rows as `pandas` has removed support for `axis=1` in the `groupby` method.
404+
In the case of `groupby`, we need to use `.T` to transpose the columns into rows, as `pandas` has removed support for `axis=1` in the `groupby` method.
405405

406406
```{code-cell} ipython3
407407
merged.T.groupby(level='Continent').mean().head()

0 commit comments

Comments
 (0)