NumPy - Aggregation Functions
The following code throws an error. What is the mistake?
import numpy as np arr = np.array([1, 2, 3]) result = np.prod(arr, axis=1) print(result)
