modin.pandas.Series.sum¶
- Series.sum(axis=None, skipna=True, numeric_only=False, min_count=0, **kwargs) Scalar[source]¶
Return the sum of the values over the requested axis.
This is equivalent to the method numpy.sum.
- Parameters:
axis ({index (0), columns (1)}) – Axis for the function to be applied on. For Series this parameter is unused and defaults to 0.
skipna (bool, default True) – Exclude NA/null values when computing the result.
numeric_only (bool, default False) – If True, Include only float, int, boolean columns. Not implemented for Series.
min_count (int, default 0) – The required number of valid values to perform the operation. If fewer than min_count non-NA values are present the result will be NA.
**kwargs – Additional keyword arguments to be passed to the function.
- Return type:
Examples
By default, the sum of an empty or all-NA Series is
0.This can be controlled with the
min_countparameter. For example, if you’d like the sum of an empty series to be NaN, passmin_count=1.Thanks to the
skipnaparameter,min_counthandles all-NA and empty series identically.