NumPy - Aggregation Functions
Identify the error in this code snippet:
import numpy as np arr = np.array([1, 2, 3]) cum_sum = np.cumsum(arr, axis=1) print(cum_sum)
