CBSE Class 12 Informatics Practices
Question 81 of 101
Python Pandas — II — Question 5
Back to all questionsThe sum provides the total of all numbers in a sequence, while the cumulative sum represents the running total of numbers encountered up to a specific point in the sequence.
The sum() function gives the total sum of values along specified axes, whereas the cumsum() function provides the cumulative sum of values along specified axes, either column-wise or row-wise.