Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 91)
91.
How can you calculate the mean of a NumPy array arr along the second axis?
arr.mean(axis=1)
np.mean(arr, axis=1)
np.mean(axis=1, arr)
arr.mean(axis=0)
Answer: Option
Explanation:
The mean() function with axis=1 calculates the mean along the second axis.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.