Skip to content

Commit

Permalink
try fixup;
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Mar 19, 2024
1 parent 185e889 commit 0d87bce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion narwhals/pandas_like/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def evaluate_simple_aggregation(expr: PandasExpr, grouped: Any, keys: list[str])
if len(ser.shape) > 1:
# dataframe
ser = ser.drop(columns=keys)
ser = ser[ser.columns[0]]
ser = ser[ser.columns[0]].reset_index(drop=True)
ser.name = expr._output_names[0] # type: ignore[index]
return ser
if expr._root_names is None or expr._output_names is None:
Expand Down

0 comments on commit 0d87bce

Please sign in to comment.