Skip to content

DOC: fix ES01 for pandas.core.resample.Resampler.indices #60835

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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
7 changes: 7 additions & 0 deletions pandas/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,13 @@ def indices(self) -> dict[Hashable, npt.NDArray[np.intp]]:
"""
Dict {group name -> group indices}.

The dictionary keys represent the group labels (e.g., timestamps for a
time-based resampling operation), and the values are arrays of integer
positions indicating where the elements of each group are located in the
original data. This property is particularly useful when working with
resampled data, as it provides insight into how the original time-series data
has been grouped.

See Also
--------
core.groupby.DataFrameGroupBy.indices : Provides a mapping of group rows to
Expand Down