mean(a, axis=None, keepdims=False)¶
Compute the arithmetic mean along the specified axis.
Returns the average of the array elements. The average is taken over the flattened array by default, otherwise over the specified axis.
a (ndarray) – Array to take the mean of.
mean. The flattened array is used by default. (the) –
keepdims (bool) – If this is set to True, the axes which are reduced are
in the result as dimensions with size one. With this option, (left) –
result will broadcast correctly against the input array. (the) –
The mean of
a, along the axis or axes if specified.
- Return type