CBSE Class 12 Informatics Practices
Question 28 of 101
Python Pandas — II — Question 4
Back to all questionssub, rsub
Reason — We can subtract two DataFrame objects using either (-) operator or using sub() function as per syntax : <DF1>.sub(<DF2>) which means <DF1>-<DF2> or by using rsub() function i.e., reverse subtract as per syntax : <DF1>.rsub(<DF2>) which means <DF2>-<DF1>.