python-workshop-base icon indicating copy to clipboard operation
python-workshop-base copied to clipboard

The function usage has been updated for calculating grouped means

Open nkandhari opened this issue 1 year ago • 1 comments

In the chapter, Data analysis in Python (https://github.com/MonashDataFluency/python-workshop-base/blob/master/workshops/docs/modules/working_with_data.md), the few bits have been updated and needs to be updated in the material too.

Under the heading: Groups in Pandas, calculating grouped means:

existing code: prints an error.

grouped_data.mean()

Updated code: explicitly specify to calculate grouped means for numerical columns only.

grouped_data.mean(numeric_only = True)

nkandhari avatar May 22 '24 03:05 nkandhari

The same changes must be made in the half-day and the full-day workshops.

nkandhari avatar May 22 '24 03:05 nkandhari