Data analysis labexercise

Mean sepal length, no loop

Turn the Iris sepal column into an array and compute its mean with NumPy.

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…

Load iris.csv. Take sepal_length as a NumPy array. Print the mean without writing a Python for loop. Then open the solution and compare.

1

Starter

2

Scratch