NumPy - Aggregation Functions
Given a 2D numpy array representing daily sales for 3 products over 4 days:
Which code correctly computes the cumulative sales per product over the days?
sales = np.array([[5, 3, 2],
[4, 6, 1],
[7, 2, 3],
[3, 5, 4]])Which code correctly computes the cumulative sales per product over the days?
