File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -516,10 +516,10 @@ numeric data.
516516# Summary statistics for all numeric columns by sex
517517grouped_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 \
@@ -546,7 +546,7 @@ summary stats.
546546 then calculate mean values?
547547
548548- ` grouped_data2 = surveys_df.groupby(['plot_id', 'sex']) `
549- - ` grouped_data2.mean() `
549+ - ` grouped_data2.mean(numeric_only=True ) `
550550
5515513 . Summarize weight values for each site in your data. HINT: you can use the
552552 following syntax to only create summary statistics for one column in your data.
You can’t perform that action at this time.
0 commit comments