Skip to content

Commit 9d6ae49

Browse files
author
Daniel Saxton
committed
Use should_reduce
1 parent 6b98060 commit 9d6ae49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/apply.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def apply_empty_result(self):
206206
if not should_reduce:
207207
try:
208208
r = self.f(Series([]))
209-
reduce = not isinstance(r, Series)
209+
should_reduce = not isinstance(r, Series)
210210
except Exception:
211211
pass
212212
else:

0 commit comments

Comments
 (0)