Q. Write equivalent function for the following operations on two DataFrames A and B


(i) A+B

(ii) B+A

(iii) A-B

(iv) B-A

(v) B*A

(vi) B/A

(vii) A/B


Answer :-

(i) A.add(B)
(ii) B.add(A)
(iii) A.sub(B)
(iv) B.sub(A) or A.rsub(B)
(v) B.mul(A)
(vi) A.rdiv(B) or B.div(A)
(vii) B.rdiv(A) or A.div(B)

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post