Skip to content

2.2.1 Data Consistency - confusing variable name #119

@jack89roberts

Description

@jack89roberts

The smaller_petals variable name here:

# True for each row with body_mass_g greater than the min value of 285g
smaller_petals = df["body_mass_g"] > df["body_mass_g"].min()

# Lowest penguin weight out of all rows with weights above 285g
df.loc[smaller_petals, "body_mass_g"].min()

is a leftover from when this notebook was using the Iris dataset. It should be renamed to something penguin related, e.g. heavier_penguins

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions