pandas.api.typing.Resampler.sum
pandas 3.1.1 · Resampling · method
Add values along an axis or inside each group or window. Use min_count where supported to require usable observations.
Call syntax
pd.api.typing.Resampler.sum(numeric_only=False, min_count=0)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
numeric_only |
Optional Positional or keyword Default False |
bool Restrict the calculation to columns pandas considers numeric where applicable. |
min_count |
Optional Positional or keyword Default 0 |
int Require at least this many valid values before producing a nonmissing result. |
Returns
Series or DataFrame