Petal length is column index 2 in iris.csv. Load that column, keep values greater than 1.5, and print how many flowers that is.
Data analysis labNumPy problems
Problem 50 of 50 · On the Iris data · Medium
How many long petals?
Count Iris flowers whose petal length is above 1.5 cm.
Preparing NumPy, Pandas, and MatplotlibShift+Enter runs the cell you are in.
Iris
iris.csv · Public domain
150 iris flowers, four measurements, and a species label. A small numeric table for arrays and histograms.
Loading the first rows…
1
Your solution
2