NumPy - Aggregation Functions
What will be the output of this code?
import numpy as np arr = np.array([[1, 2], [3, 4]]) cum_sum = np.cumsum(arr, axis=1) print(cum_sum)
