Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -250,22 +250,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.read_sas ES01" \
-i "pandas.read_spss ES01" \
-i "pandas.read_stata ES01" \
-i "pandas.api.typing.Resampler.get_group ES01" \
-i "pandas.api.typing.Resampler.apply ES01" \
-i "pandas.api.typing.Resampler.aggregate ES01" \
-i "pandas.api.typing.Resampler.asfreq ES01" \
-i "pandas.api.typing.Resampler.count ES01" \
-i "pandas.api.typing.Resampler.nunique ES01" \
-i "pandas.api.typing.Resampler.first ES01" \
-i "pandas.api.typing.Resampler.last ES01" \
-i "pandas.api.typing.Resampler.max ES01" \
-i "pandas.api.typing.Resampler.mean ES01" \
-i "pandas.api.typing.Resampler.min ES01" \
-i "pandas.api.typing.Resampler.ohlc ES01" \
-i "pandas.api.typing.Resampler.prod ES01" \
-i "pandas.api.typing.Resampler.size ES01" \
-i "pandas.api.typing.Resampler.std ES01" \
-i "pandas.api.typing.Resampler.var ES01" \
-i "pandas.plotting.parallel_coordinates ES01" \
-i "pandas.bdate_range ES01" \
-i "pandas.timedelta_range ES01" \
Expand Down Expand Up @@ -411,8 +395,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.api.indexers.BaseIndexer ES01" \
-i "pandas.api.indexers.FixedForwardWindowIndexer ES01" \
-i "pandas.api.indexers.VariableOffsetWindowIndexer ES01" \
-i "pandas.api.typing.DataFrameGroupBy.get_group ES01" \
-i "pandas.api.typing.SeriesGroupBy.get_group ES01" \
-i "pandas.NamedAgg ES01" \
-i "pandas.api.typing.DataFrameGroupBy.all ES01" \
-i "pandas.api.typing.DataFrameGroupBy.any ES01" \
Expand Down
3 changes: 3 additions & 0 deletions pandas/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,9 @@ def get_group(self, name) -> DataFrame | Series:
"""
Construct DataFrame from group with provided name.

This method retrieves all rows belonging to a specific group identified
by the given name.

Parameters
----------
name : object
Expand Down
40 changes: 40 additions & 0 deletions pandas/core/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@ def aggregate(self, func=None, *args, **kwargs):
"""
Aggregate using one or more operations over the specified axis.

This method applies aggregation functions to resampled groups, enabling
summary statistics to be computed for each time period.

Parameters
----------
func : function, str, list or dict
Expand Down Expand Up @@ -1058,6 +1061,9 @@ def asfreq(self, fill_value=None):
"""
Return the values at the new freq, essentially a reindex.

This method selects data at the specified frequency without aggregation,
useful for upsampling to a higher frequency or selecting specific time points.

Parameters
----------
fill_value : scalar, optional
Expand Down Expand Up @@ -1165,6 +1171,9 @@ def prod(
"""
Compute prod of group values.

This method calculates the product of all values within each resampled
time period.

Parameters
----------
numeric_only : bool, default False
Expand Down Expand Up @@ -1220,6 +1229,8 @@ def min(
"""
Compute min value of group.

This method returns the minimum value within each resampled time period.

Parameters
----------
numeric_only : bool, default False
Expand Down Expand Up @@ -1275,6 +1286,8 @@ def max(
"""
Compute max value of group.

This method returns the maximum value within each resampled time period.

Parameters
----------
numeric_only : bool, default False
Expand Down Expand Up @@ -1331,6 +1344,9 @@ def first(
"""
Compute the first non-null entry of each column.

This method returns the first value encountered in each resampled time
period, skipping missing values by default.

Parameters
----------
numeric_only : bool, default False
Expand Down Expand Up @@ -1384,6 +1400,9 @@ def last(
"""
Compute the last non-null entry of each column.

This method returns the last value encountered in each resampled time
period, skipping missing values by default.

Parameters
----------
numeric_only : bool, default False
Expand Down Expand Up @@ -1485,6 +1504,9 @@ def mean(
"""
Compute mean of groups, excluding missing values.

This method calculates the arithmetic mean of values within each
resampled time period.

Parameters
----------
numeric_only : bool, default False
Expand Down Expand Up @@ -1540,6 +1562,9 @@ def std(
"""
Compute standard deviation of groups, excluding missing values.

This method calculates the sample standard deviation of values within
each resampled time period.

Parameters
----------
ddof : int, default 1
Expand Down Expand Up @@ -1596,6 +1621,9 @@ def var(
"""
Compute variance of groups, excluding missing values.

This method calculates the sample variance of values within each
resampled time period.

Parameters
----------
ddof : int, default 1
Expand Down Expand Up @@ -1710,6 +1738,9 @@ def ohlc(self):
"""
Compute open, high, low and close values of a group, excluding missing values.

This method computes OHLC (Open-High-Low-Close) values, commonly used
in financial data analysis to summarize price movements within time periods.

Returns
-------
DataFrame
Expand Down Expand Up @@ -1764,6 +1795,9 @@ def nunique(self):
"""
Return number of unique elements in the group.

This method counts the number of distinct values within each resampled
time period.

Returns
-------
Series
Expand Down Expand Up @@ -1799,6 +1833,9 @@ def size(self):
"""
Compute group sizes.

This method returns the number of rows in each resampled time period,
including rows with missing values.

Returns
-------
Series
Expand Down Expand Up @@ -1848,6 +1885,9 @@ def count(self):
"""
Compute count of group, excluding missing values.

This method returns the number of non-null values in each resampled
time period.

Returns
-------
Series or DataFrame
Expand Down
Loading