Which function is used to compute the cumulative product of elements along a specified axis in NumPy?
Correct answer
B. np.cumprod()
13 views
B. np.cumprod()
13 views
The np.cumprod() function computes the cumulative product of elements along a specified axis. It is helpful for analyzing the cumulative effect of successive multiplications in datasets.
Not sure why the answer is B? Ask here and get an explanation.