We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbece5e commit f08c782Copy full SHA for f08c782
pandas/core/apply.py
@@ -367,17 +367,16 @@ def agg_list_like(self) -> DataFrame | Series:
367
except (TypeError, DataError):
368
failed_names.append(col)
369
except ValueError as err:
370
- failed_names.append(col)
371
# cannot aggregate
372
if "Must produce aggregated value" in str(err):
373
# raised directly in _aggregate_named
374
- pass
+ failed_names.append(col)
375
elif "no results" in str(err):
376
# reached in test_frame_apply.test_nuiscance_columns
377
# where the colg.aggregate(arg) ends up going through
378
# the selected_obj.ndim == 1 branch above with arg == ["sum"]
379
# on a datetime64[ns] column
380
381
else:
382
raise
383
0 commit comments