Skip to content

Commit 6a50022

Browse files
committed
Revert unnecessary changes
1 parent 658cdf6 commit 6a50022

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: pandas/core/groupby/groupby.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,8 @@ def groups(self) -> dict[Hashable, Index]:
570570
2023-02-15 4
571571
dtype: int64
572572
>>> ser.resample("MS").groups
573-
{Timestamp('2023-01-01 00:00:00'): 2, Timestamp('2023-02-01 00:00:00'): 4}
573+
{Timestamp('2023-01-01 00:00:00'): np.int64(2),
574+
Timestamp('2023-02-01 00:00:00'): np.int64(4)}
574575
"""
575576
if isinstance(self.keys, list) and len(self.keys) == 1:
576577
warnings.warn(
@@ -637,7 +638,7 @@ def indices(self) -> dict[Hashable, npt.NDArray[np.intp]]:
637638
toucan 1 5 6
638639
eagle 7 8 9
639640
>>> df.groupby(by=["a"]).indices
640-
{1: array([0, 1]), 7: array([2])}
641+
{np.int64(1): array([0, 1]), np.int64(7): array([2])}
641642
642643
For Resampler:
643644

0 commit comments

Comments
 (0)