Skip to content

Price of conventional vs. organic avocados #5

@Ramzan-Ali12

Description

@Ramzan-Ali12

The Correct code for this exercise is

Histogram of conventional avg_price

avocados[avocados["type"] == "conventional"]["avg_price"].hist()

Histogram of organic avg_price

avocados[avocados["type"] == "organic"]["avg_price"].hist()

Add a legend

plt.legend(["conventional", "organic"])

Show the plot

plt.show()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions