Skip to content

Commit 027f77e

Browse files
committed
Update pandas/tests/computation/test_eval.py
1 parent ebd3146 commit 027f77e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tests/computation/test_eval.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -738,9 +738,9 @@ def test_and_logic_string_match(self):
738738
assert pd.eval(f"{event.str.match('hello').a and event.str.match('hello').a}")
739739

740740
def test_eval_keep_name(self, engine, parser):
741-
df = Series([0.2, 1.5, 2.8], name="a").to_frame()
742-
res = df.eval("a * a", engine=engine, parser=parser)
743-
expected = df["a"] * df["a"]
741+
df = Series([2, 15, 28], name="a").to_frame()
742+
res = df.eval("a + a", engine=engine, parser=parser)
743+
expected = Series([4, 30, 56], name="a")
744744
tm.assert_series_equal(expected, res)
745745

746746
def test_eval_unmatching_names(self, engine, parser):

0 commit comments

Comments
 (0)