Začněte nyníZačněte zdarma

Computing means

The mean of all measurements gives an indication of the typical magnitude of a measurement. It is computed using np.mean().

Toto cvičení je součástí kurzu

Statistical Thinking in Python (Part 1)

Zobrazit kurz

Pokyny k cvičení

  • Compute the mean petal length of Iris versicolor from Anderson's classic data set. The variable versicolor_petal_length is provided in your namespace. Assign the mean to mean_length_vers.
  • Hit submit to print the result.

Interaktivní cvičení na vyzkoušení si v praxi

Vyzkoušejte si toto cvičení dokončením tohoto ukázkového kódu.

# Compute the mean: mean_length_vers


# Print the result with some nice formatting
print('I. versicolor:', mean_length_vers, 'cm')
Upravit a spustit kód