Skip to content

Commit 2a49a4f

Browse files
DOC: fix ES01 for pandas.core.resample.Resampler.indices (#60835)
1 parent e4f6270 commit 2a49a4f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pandas/core/groupby/groupby.py

+7
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,13 @@ def indices(self) -> dict[Hashable, npt.NDArray[np.intp]]:
570570
"""
571571
Dict {group name -> group indices}.
572572
573+
The dictionary keys represent the group labels (e.g., timestamps for a
574+
time-based resampling operation), and the values are arrays of integer
575+
positions indicating where the elements of each group are located in the
576+
original data. This property is particularly useful when working with
577+
resampled data, as it provides insight into how the original time-series data
578+
has been grouped.
579+
573580
See Also
574581
--------
575582
core.groupby.DataFrameGroupBy.indices : Provides a mapping of group rows to

0 commit comments

Comments
 (0)