bigframes.geopandas.GeoSeries.sum#
- GeoSeries.sum() float#
Return the sum of the values over the requested axis.
This is equivalent to the method
numpy.sum.Examples:
Calculating the sum of a Series:
>>> s = bpd.Series([1, 3]) >>> s 0 1 1 3 dtype: Int64
>>> s.sum() np.int64(4)
Calculating the sum of a Series containing
NAvalues:>>> s = bpd.Series([1, 3, pd.NA]) >>> s 0 1 1 3 2 <NA> dtype: Int64
>>> s.sum() np.int64(4)
- Returns:
Scalar.
- Return type:
scalar