Q. Which method is used to calculate the cumulative maximum in a Series or DataFrame?
β
Correct Answer: (A)
cummax()
Explanation: cummax() returns the cumulative maximum of the values over rows or columns.