Q. 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


Answer =

(i) df.sum()
(ii) df.count()
(iii) df.mean()
(iv)
(v) df.median()
(vi) df.std()
(vii) df.var()
(viii) df.max()
(ix) df.std()
(x) df.var()

Post a Comment

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

Previous Post Next Post