CBSE Class 12 Informatics Practices Question 65 of 101

Python Pandas — II — Question 7

Back to all questions
7
Question

Question 7

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

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.