Skip to content

Commit 1b542a6

Browse files
committed
FIX accept pre-commit changes
1 parent c2fed65 commit 1b542a6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pandas/core/apply.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ def agg_callable(self) -> DataFrame | Series:
824824
axis=self.axis,
825825
skipna=True,
826826
numeric_only=False,
827-
**self.kwargs
827+
**self.kwargs,
828828
)
829829
return result
830830

@@ -845,10 +845,7 @@ def _agg_callable_fallback(self) -> DataFrame | Series:
845845
if self.axis == 1:
846846
# For row-wise aggregation, transpose and recurse
847847
transposed_result = obj.T._aggregate(
848-
func,
849-
*self.args,
850-
axis=0,
851-
**self.kwargs
848+
func, *self.args, axis=0, **self.kwargs
852849
)
853850
return transposed_result
854851

@@ -885,6 +882,7 @@ def _agg_callable_fallback(self) -> DataFrame | Series:
885882
except Exception:
886883
return None
887884

885+
888886
class NDFrameApply(Apply):
889887
"""
890888
Methods shared by FrameApply and SeriesApply but

0 commit comments

Comments
 (0)