Skip to content

Commit 516581b

Browse files
committed
Fixed error with depreciated default in pandas>2
1 parent e2b2a05 commit 516581b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

episodes/02-starting-with-data.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,10 +516,10 @@ numeric data.
516516
# Summary statistics for all numeric columns by sex
517517
grouped_data.describe()
518518
# Provide the mean for each numeric column by sex
519-
grouped_data.mean()
519+
grouped_data.mean(numeric_only=True)
520520
```
521521

522-
`grouped_data.mean()` **OUTPUT:**
522+
`grouped_data.mean(numeric_only=True)` **OUTPUT:**
523523

524524
```output
525525
record_id month day year plot_id \

0 commit comments

Comments
 (0)