Skip to content

Commit 10dff12

Browse files
committed
drop the if-else clause
1 parent d02eace commit 10dff12

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/groupby/generic.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1645,9 +1645,8 @@ def _wrap_aggregated_output(
16451645
DataFrame
16461646
"""
16471647
indexed_output = {key.position: val for key, val in output.items()}
1648-
16491648
agg_axis = self._obj_with_exclusions._get_axis(1 - self.axis)
1650-
columns = Index([key.label for key in output], names=agg_axis.names)
1649+
columns = Index([key.label for key in output], name=agg_axis.names)
16511650

16521651
result = self.obj._constructor(indexed_output)
16531652
result.columns = columns

0 commit comments

Comments
 (0)