KnowledgeBoat Logo
|

Informatics Practices

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

Python Pandas

1 Like

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.

Answered By

3 Likes


Related Questions