Skip to content
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