Skip to content

Commit dfc609f

Browse files
committed
drop the if-else clause
1 parent ac34074 commit dfc609f

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
@@ -1643,9 +1643,8 @@ def _wrap_aggregated_output(
16431643
DataFrame
16441644
"""
16451645
indexed_output = {key.position: val for key, val in output.items()}
1646-
16471646
agg_axis = self._obj_with_exclusions._get_axis(1 - self.axis)
1648-
columns = Index([key.label for key in output], names=agg_axis.names)
1647+
columns = Index([key.label for key in output], name=agg_axis.names)
16491648

16501649
result = self.obj._constructor(indexed_output)
16511650
result.columns = columns

0 commit comments

Comments
 (0)