Skip to content

Commit

Permalink
DOC: fix ES01 for pandas.core.resample.Resampler.indices (#60835)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhinsharma121 authored Feb 3, 2025
1 parent e4f6270 commit 2a49a4f
Showing 1 changed file with 7 additions and 0 deletions.
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

0 comments on commit 2a49a4f

Please sign in to comment.