NumPy - Aggregation Functions
What is the output of the following code?
import numpy as np arr = np.array([2, 4, 6, 8]) cum_sum = np.cumsum(arr) print(cum_sum)
import numpy as np arr = np.array([2, 4, 6, 8]) cum_sum = np.cumsum(arr) print(cum_sum)
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions