NumPy - Aggregation Functions
What is wrong with this code snippet?
import numpy as np arr = np.array([[1, 2], [3, 4]]) result = np.sum(arr, axis=2)
import numpy as np arr = np.array([[1, 2], [3, 4]]) result = np.sum(arr, axis=2)
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions