CBSE Class 12 Informatics Practices Question 49 of 101

Python Pandas — II — Question 4

Back to all questions
4
Question

Question 4

The result produced by the functions add() and radd() is the same.

Answer

True

Reason — When adding two DataFrame objects using the add() function with the syntax <DF1>.add(<DF2>), it means <DF1> + <DF2>. Similarly, using the radd() function with the syntax <DF1>.radd(<DF2>) means <DF2> + <DF1>. Both operations produce the same results because addition is commutative, meaning the order of operands does not affect the result.