Course Content
Learning Statistics with Python
Calculate Mean and Median Values with Python
You already know the mean and median, but now let's calculate them using Python. To do it, we need to import the NumPy library with the np
alias:
Calculating the Mean and the Median with Python
We start with importing library:
We will use functions .mean()
and .median()
to calculate the mean and median value correspondingly. The example of code is here:
Try to change the columns and look at the result:
Section 2.
Chapter 2