We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4f6270 commit 2a49a4fCopy full SHA for 2a49a4f
pandas/core/groupby/groupby.py
@@ -570,6 +570,13 @@ def indices(self) -> dict[Hashable, npt.NDArray[np.intp]]:
570
"""
571
Dict {group name -> group indices}.
572
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
+
580
See Also
581
--------
582
core.groupby.DataFrameGroupBy.indices : Provides a mapping of group rows to
0 commit comments