Informatics Practices
Are sum() and add() functions the same ?
Python Pandas
3 Likes
Answer
No, the sum() and add() functions are not the same in pandas. The sum() function in pandas calculates the sum of values along a specified axis. On the other hand, the add() function in pandas is used to add two objects element-wise.
Answered By
1 Like
Related Questions
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
What does info() and describe() do ?
Name some functions that perform descriptive statistics on a DataFrame.
To consider only the numeric values for calculation, what argument do you pass to statistics functions of Pandas ?