Skip to content

Commit b9c6fa8

Browse files
DOC: fix SA01,ES01 for pandas.core.resample.Resampler.sum (#60037)
1 parent a518b8f commit b9c6fa8

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
122122
-i "pandas.core.resample.Resampler.quantile PR01,PR07" \
123123
-i "pandas.core.resample.Resampler.sem SA01" \
124124
-i "pandas.core.resample.Resampler.std SA01" \
125-
-i "pandas.core.resample.Resampler.sum SA01" \
126125
-i "pandas.core.resample.Resampler.transform PR01,RT03,SA01" \
127126
-i "pandas.core.resample.Resampler.var SA01" \
128127
-i "pandas.errors.AttributeConflictWarning SA01" \

pandas/core/resample.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,10 @@ def sum(
10211021
"""
10221022
Compute sum of group values.
10231023
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+
10241028
Parameters
10251029
----------
10261030
numeric_only : bool, default False
@@ -1039,6 +1043,14 @@ def sum(
10391043
Series or DataFrame
10401044
Computed sum of values within each group.
10411045
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+
10421054
Examples
10431055
--------
10441056
>>> ser = pd.Series(

0 commit comments

Comments
 (0)