NumPy - Aggregation Functions
You have a 3D array
arr with shape (2, 3, 4). You want to compute the sum over the last two axes to get a 1D array. Which code achieves this?