CBSE Class 12 Informatics Practices Question 56 of 101

Python Pandas — II — Question 11

Back to all questions
11
Question

Question 11

Functions sum() and cumsum() produce the same result.

Answer

False

Reason — The function sum() returns the sum of the values for the requested axis. On the other hand, cumsum() calculates the cumulative sum. In the output of this function, the value of each row is replaced by the sum of all prior rows, including this row.