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