Question #235917

Find out the mean, median and standard deviation of this numpy array -> np.array([1,5,3,100,4,48])


Expert's answer

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))
LATEST TUTORIALS
APPROVED BY CLIENTS