Q. Which method is used to calculate the cumulative product of elements over a DataFrame or Series?
β
Correct Answer: (A)
cumprod()
Explanation: The cumprod() method calculates the cumulative product over rows or columns of a DataFrame or Series.