KnowledgeBoat Logo
|

Informatics Practices

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

Python Pandas

3 Likes

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.

Answered By

3 Likes


Related Questions