Skip to content

Commit 663fed5

Browse files
committed
CLN: clean up testing and expr
1 parent 9a29eb6 commit 663fed5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pandas/computation/expr.py

+1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def visit_Attribute(self, node):
112112
def visit_BoolOp(self, node):
113113
raise NotImplementedError("boolean operators are not yet supported")
114114

115+
115116
class Expr(StringMixin):
116117
"""Expr object"""
117118
def __init__(self, expr, engine='numexpr', env=None, truediv=True):

pandas/computation/tests/test_eval.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def fractional(x):
4242

4343

4444
def hasfractional(x):
45-
return np.any(fractional(x) != 0.0)
45+
return np.any(fractional(x))
4646

4747

4848
def _eval_from_expr(lhs, cmp1, rhs, binop, cmp2):

0 commit comments

Comments
 (0)