CBSE Class 12 Informatics Practices
Question 40 of 101
Python Pandas — II — Question 16
Back to all questionscumsum()
Reason — The cumsum() function in pandas is used to calculate the cumulative sum of a column in a DataFrame i.e., in the output of this function, the value of each row is replaced by the sum of all prior rows, including this row.