Skip to content

Commit de006f8

Browse files
jbrockmendeljreback
authored andcommitted
remove never-used branch (pandas-dev#27236)
1 parent 55f0666 commit de006f8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pandas/core/ops/__init__.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
import numpy as np
1313

14-
from pandas._libs import algos as libalgos, lib, ops as libops
14+
from pandas._libs import lib, ops as libops
1515
from pandas.errors import NullFrequencyError
1616
from pandas.util._decorators import Appender
1717

@@ -1667,10 +1667,6 @@ def na_op(x, y):
16671667
result = expressions.evaluate(op, str_rep, x, y, **eval_kwargs)
16681668
except TypeError:
16691669
result = masked_arith_op(x, y, op)
1670-
except Exception: # TODO: more specific?
1671-
if is_object_dtype(x):
1672-
return libalgos.arrmap_object(x, lambda val: op(val, y))
1673-
raise
16741670

16751671
if isinstance(result, tuple):
16761672
# e.g. divmod

0 commit comments

Comments
 (0)