Informatics Practices
Write equivalent expressions for the given functions :
(i) A.add(B)
(ii) B.add(A)
(iii) A.sub(B)
(iv) B.sub(A)
(v) A.rsub(B)
(vi) B.mul(A)
(vii) A.rdiv(B)
(viii) B.div(A)
(ix) B.rdiv(A)
(x) A.div(B)
Python Pandas
2 Likes
Answer
(i) A.add(B) — A + B
(ii) B.add(A) — B + A
(iii) A.sub(B) — A - B
(iv) B.sub(A) — B - A
(v) A.rsub(B) — B - A
(vi) B.mul(A) — B * A
(vii) A.rdiv(B) — B / A
(viii) B.div(A) — B / A
(ix) B.rdiv(A) — A / B
(x) A.div(B) — A / B
Answered By
1 Like
Related Questions
Name the function to iterate over a DataFrame horizontally.
Name the function to iterate over a DataFrame vertically.
Is the result of sub() and rsub() the same? Why/why not ?
Write appropriate functions to perform the following on a DataFrame ?
(i) Calculate the sum
(ii) Count the values
(iii) Calculate the average
(iv) Calculate the most repeated value
(v) Calculate the median
(vi) Calculate the standard deviation
(vii) Calculate the variance
(viii) Calculate the maximum value
(ix) Calculate the standard deviation
(x) Calculate the variance