CBSE Class 12 Informatics Practices Question 27 of 101

Python Pandas — II — Question 3

Back to all questions
3
Question

Question 3

To add two DataFrames' values, ............... function may be used.

  1. plus
  2. rplus
  3. add
  4. radd
Answer

add, radd

Reason — We can add two DataFrame objects using either (+) operator or using add() function as per syntax : <DF1>.add(<DF2>) which means <DF1>+<DF2> or by using radd() function i.e., reverse add as per syntax : <DF1>.radd(<DF2>) which means <DF2>+<DF1>.