Skip to content

Commit 70748fd

Browse files
author
Kei
committed
in apply, if as_index is false, return single index
1 parent b111ac6 commit 70748fd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pandas/core/groupby/groupby.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -1202,10 +1202,7 @@ def _concat_objects(
12021202
sort=False,
12031203
)
12041204
else:
1205-
# GH5610, returns a MI, with the first level being a
1206-
# range index
1207-
keys = RangeIndex(len(values))
1208-
result = concat(values, axis=0, keys=keys)
1205+
result = concat(values, axis=0)
12091206

12101207
elif not not_indexed_same:
12111208
result = concat(values, axis=0)

0 commit comments

Comments
 (0)