Skip to content

Commit

Permalink
REF: use named funcs instead of lambdas (pandas-dev#29841)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockmendel authored and proost committed Dec 19, 2019
1 parent 0031198 commit a1e9810
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -10226,7 +10226,7 @@ def compound(self, axis=None, skipna=None, level=None):
name2,
axis_descr,
"minimum",
lambda y, axis: np.minimum.accumulate(y, axis),
np.minimum.accumulate,
"min",
np.inf,
np.nan,
Expand All @@ -10239,7 +10239,7 @@ def compound(self, axis=None, skipna=None, level=None):
name2,
axis_descr,
"sum",
lambda y, axis: y.cumsum(axis),
np.cumsum,
"sum",
0.0,
np.nan,
Expand All @@ -10252,7 +10252,7 @@ def compound(self, axis=None, skipna=None, level=None):
name2,
axis_descr,
"product",
lambda y, axis: y.cumprod(axis),
np.cumprod,
"prod",
1.0,
np.nan,
Expand All @@ -10265,7 +10265,7 @@ def compound(self, axis=None, skipna=None, level=None):
name2,
axis_descr,
"maximum",
lambda y, axis: np.maximum.accumulate(y, axis),
np.maximum.accumulate,
"max",
-np.inf,
np.nan,
Expand Down

0 comments on commit a1e9810

Please sign in to comment.