python pandas sum of series 1

python pandas sum of series

the_sum = YourSeries.sum()

Here is what the above code is Doing:
1. We create a variable called “YourSeries” and assign it to the Series object.
2. We then create a variable called “the_sum” and assign it to the sum of the values in the Series object.

Similar Posts