NumPy - Aggregation Functions
Which of the following is the correct syntax for
np.mean() to calculate the mean of a NumPy array named arr?np.mean() to calculate the mean of a NumPy array named arr?np.mean(), which takes the array as an argument.mean(arr) is not defined without importing; arr.mean() is valid but not the function asked; np.average(arr) is similar but not the exact function requested.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions