NumPy - Aggregation Functions
Which of the following is the correct syntax to calculate the mean of a numpy array
arr?arr?mean() to calculate average.arr.mean() is correct; mean(arr) is invalid without import, numpy.mean(arr) requires prefix, arr.average() does not exist.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions