NumPy - Aggregation Functions
What is wrong with this code snippet?
import numpy as np arr = np.array([1, 2, 3]) result = np.prod(arr, axis=3) print(result)
import numpy as np arr = np.array([1, 2, 3]) result = np.prod(arr, axis=3) print(result)
arr is 1D with shape (3,).15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions