CBSE Class 12 Informatics Practices
Question 82 of 101
Python Pandas — II — Question 6
Back to all questionsThe cumulative functions provided by Pandas are cumsum(), cumprod(), cummax(), cummin().
cumsum() — It calculates cumulative sum i.e., in the output of this function, the value of each row is replaced by sum of all prior rows including this row. The syntax is
<DF>.cumsum([axis = None]).cumprod() — It calculates cumulative product of values in a DataFrame object.
cummax() — It calculates cumulative maximum of value from a DataFrame object.
cummin() — It calculates cumulative minimum of value from a DataFrame object.