Find out the mean, median and standard deviation of this numpy array -> np.array([1,5,3,100,4,48])
import numpy as np
arr = np.array([1, 5, 3, 100, 4, 48])
print('mean:', np.round(np.mean(arr), 2))
print('median:', np.median(arr))
print('standard deviation:', np.round(np.std(arr), 2))
Comments
Leave a comment