CBSE Class 12 Informatics Practices Question 54 of 101

Python Pandas — II — Question 9

Back to all questions
9
Question

Question 9

The minus - operator's result is same as sub() and rsub().

Answer

False

Reason — The '-' operator in pandas subtracts the right operand from the left operand, similar to the sub() function. However, the rsub() function subtracts the left operand from the right operand. Therefore, '-' and sub() produce the same result, while rsub() produces a different result due to the order of operands.