Data analysis labNumPy problems

Problem 49 of 50 · On the Iris data · Medium

Mean of each Iris measurement

Load the four numeric Iris columns and average each one.

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…

iris.csv is already on disk. Load the four numeric columns with np.genfromtxt (skip_header=1, usecols=(0, 1, 2, 3)). Print the mean of each column, rounded to 4 decimals. Do not use a Python loop.

1

Your solution

2

Scratch