Skip to content

Error in solution to "Challenge - Plots" #639

@archaeolauren

Description

@archaeolauren

How could the content be improved?

The solution to the plotting challenge in "starting with data" produces an error because it tries to calculate means of all variables in the dataframe, not all of which are numeric. I would suggest either subsetting to just weight before taking the mean, or including numeric_only = True as an argument of mean().

Which part of the content does your suggestion apply to?

https://datacarpentry.github.io/python-ecology-lesson/02-starting-with-data.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions