File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -737,12 +737,14 @@ def test_and_logic_string_match(self):
737
737
assert pd .eval (f"{ event .str .match ('hello' ).a } " )
738
738
assert pd .eval (f"{ event .str .match ('hello' ).a and event .str .match ('hello' ).a } " )
739
739
740
- def test_using_numpy (self ):
740
+ def test_using_numpy (self , engine , parser ):
741
741
# GH 58041
742
742
df = Series ([0.2 , 1.5 , 2.8 ], name = "a" ).to_frame ()
743
- res = df .eval ("@np.floor(a)" )
743
+ res = df .eval ("@np.floor(a)" , engine = engine , parser = parser )
744
744
expected = np .floor (df ["a" ])
745
- tm .assert_series_equal (expected , res , check_names = False )
745
+ if engine == "numexpr" :
746
+ expected .name = None # See GH 58069
747
+ tm .assert_series_equal (expected , res )
746
748
747
749
748
750
# -------------------------------------
You can’t perform that action at this time.
0 commit comments