In this example we will show how to find the mean of some Numbers using the NumPy mean() method in Python.
Source Code
import numpy as np
num = [15, 20, 18, 32, 25, 28, 19, 22]
mean_num = np.mean(num)
print(mean_num)
Output:
22.375
In this example we will show how to find the mean of some Numbers using the NumPy mean() method in Python.
import numpy as np
num = [15, 20, 18, 32, 25, 28, 19, 22]
mean_num = np.mean(num)
print(mean_num)
Output:
22.375