Skip to content

Commit 86c5529

Browse files
committed
BUG-46369: Set name in SeriesGroupBy._wrap_applied_output
1 parent c22b13a commit 86c5529

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/core/groupby/generic.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -396,11 +396,13 @@ def _wrap_applied_output(
396396
res_ser.name = self.obj.name
397397
return res_ser
398398
elif isinstance(values[0], (Series, DataFrame)):
399-
return self._concat_objects(
399+
result = self._concat_objects(
400400
values,
401401
not_indexed_same=not_indexed_same,
402402
override_group_keys=override_group_keys,
403403
)
404+
result.name = self.obj.name # GH #46369
405+
return result
404406
else:
405407
# GH #6265 #24880
406408
result = self.obj._constructor(

0 commit comments

Comments
 (0)