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