Command
np.mean(arr, axis)Explanation
Returns the average of array elements.
Examples
Mean of all elements
np.mean(arr)Row-wise mean
np.mean(arr, axis=1)np.mean(arr, axis)Returns the average of array elements.
Mean of all elements
np.mean(arr)Row-wise mean
np.mean(arr, axis=1)