Skip to content

Commit d9b620b

Browse files
author
Daniel Saxton
committed
Remove try / except
1 parent b749cca commit d9b620b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pandas/core/apply.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,7 @@ def apply_empty_result(self):
213213
pass
214214

215215
if reduce:
216-
try:
217-
r = self.f(Series([]), *self.args, **self.kwds)
218-
except Exception:
219-
r = np.nan
220-
216+
r = self.f(Series([]), *self.args, **self.kwds)
221217
return self.obj._constructor_sliced(r, index=self.agg_axis)
222218
else:
223219
return self.obj.copy()

0 commit comments

Comments
 (0)