Informatics Practices

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

Python Pandas

2 Likes

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

1 Like


Related Questions