Skip to content

The function usage has been updated for calculating grouped means #39

@nkandhari

Description

@nkandhari

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions