File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
122
122
-i " pandas.core.resample.Resampler.quantile PR01,PR07" \
123
123
-i " pandas.core.resample.Resampler.sem SA01" \
124
124
-i " pandas.core.resample.Resampler.std SA01" \
125
- -i " pandas.core.resample.Resampler.sum SA01" \
126
125
-i " pandas.core.resample.Resampler.transform PR01,RT03,SA01" \
127
126
-i " pandas.core.resample.Resampler.var SA01" \
128
127
-i " pandas.errors.AttributeConflictWarning SA01" \
Original file line number Diff line number Diff line change @@ -1021,6 +1021,10 @@ def sum(
1021
1021
"""
1022
1022
Compute sum of group values.
1023
1023
1024
+ This method provides a simple way to compute the sum of values within each
1025
+ resampled group, particularly useful for aggregating time-based data into
1026
+ daily, monthly, or yearly sums.
1027
+
1024
1028
Parameters
1025
1029
----------
1026
1030
numeric_only : bool, default False
@@ -1039,6 +1043,14 @@ def sum(
1039
1043
Series or DataFrame
1040
1044
Computed sum of values within each group.
1041
1045
1046
+ See Also
1047
+ --------
1048
+ core.resample.Resampler.mean : Compute mean of groups, excluding missing values.
1049
+ core.resample.Resampler.count : Compute count of group, excluding missing
1050
+ values.
1051
+ DataFrame.resample : Resample time-series data.
1052
+ Series.sum : Return the sum of the values over the requested axis.
1053
+
1042
1054
Examples
1043
1055
--------
1044
1056
>>> ser = pd.Series(
You can’t perform that action at this time.
0 commit comments