We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb2f178 commit 33ee82cCopy full SHA for 33ee82c
pandas/tests/computation/test_eval.py
@@ -606,11 +606,10 @@ def test_unary_in_array(self):
606
)
607
tm.assert_numpy_array_equal(result, expected)
608
609
- @pytest.mark.parametrize("dtype", [np.float32, np.float64])
610
@pytest.mark.parametrize("expr", ["x < -0.1", "-5 > x"])
611
- def test_float_comparison_bin_op(self, dtype, expr):
+ def test_float_comparison_bin_op(self, float_numpy_dtype, expr):
612
# GH 16363
613
- df = DataFrame({"x": np.array([0], dtype=dtype)})
+ df = DataFrame({"x": np.array([0], dtype=float_numpy_dtype)})
614
res = df.eval(expr)
615
assert res.values == np.array([False])
616
0 commit comments