Skip to content

Commit fd61000

Browse files
committed
correct docs
1 parent 9afb5e5 commit fd61000

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/groupby/groupby.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,8 @@ def groups(self) -> dict[Hashable, Index]:
634634
0 1 2 3
635635
1 1 5 6
636636
2 7 8 9
637-
>>> df.groupby(by=["a"]).groups
638-
{(1,): [0, 1], (7,): [2]}
637+
>>> df.groupby(by="a").groups
638+
{1: [0, 1], 7: [2]}
639639
640640
For Resampler:
641641

0 commit comments

Comments
 (0)