Informatics Practices

Are sum() and add() functions the same ?

Python Pandas

3 Likes

Answer

No, the sum() and add() functions are not the same in pandas. The sum() function in pandas calculates the sum of values along a specified axis. On the other hand, the add() function in pandas is used to add two objects element-wise.

Answered By

1 Like


Related Questions