We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebd3146 commit 027f77eCopy full SHA for 027f77e
pandas/tests/computation/test_eval.py
@@ -738,9 +738,9 @@ def test_and_logic_string_match(self):
738
assert pd.eval(f"{event.str.match('hello').a and event.str.match('hello').a}")
739
740
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"]
+ df = Series([2, 15, 28], name="a").to_frame()
+ res = df.eval("a + a", engine=engine, parser=parser)
+ expected = Series([4, 30, 56], name="a")
744
tm.assert_series_equal(expected, res)
745
746
def test_eval_unmatching_names(self, engine, parser):
0 commit comments