Skip to content

Commit 2dc980c

Browse files
author
Thomas Lautenschlaeger
committed
fixed conflicts
2 parents 4e1f06f + 7eb8976 commit 2dc980c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/core/apply.py

+3
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,11 @@ def agg_dict_like(self) -> DataFrame | Series:
376376
from pandas import Index
377377
from pandas.core.reshape.concat import concat
378378

379+
filtered_col = self._filter_numeric_only()
380+
379381
obj = self.obj
380382
arg = cast(AggFuncTypeDict, self.f)
383+
arg = {k: arg[k] for k in arg.keys() if k not in filtered_col}
381384

382385
if getattr(obj, "axis", 0) == 1:
383386
raise NotImplementedError("axis other than 0 is not supported")

0 commit comments

Comments
 (0)