@@ -1144,11 +1144,11 @@ def test_performance_warning_for_poor_alignment(self, engine, parser):
11441144 if not is_python_engine :
11451145 assert len (w ) == 1
11461146 msg = str (w [0 ].message )
1147- loged = np .log10 (s .size - df .shape [1 ])
1147+ logged = np .log10 (s .size - df .shape [1 ])
11481148 expected = (
11491149 f"Alignment difference on axis 1 is larger "
11501150 f"than an order of magnitude on term 'df', "
1151- f"by more than { loged :.4g} ; performance may suffer"
1151+ f"by more than { logged :.4g} ; performance may suffer"
11521152 )
11531153 assert msg == expected
11541154
@@ -1404,25 +1404,25 @@ def test_multi_line_expression(self):
14041404
14051405 expected ["c" ] = expected ["a" ] + expected ["b" ]
14061406 expected ["d" ] = expected ["c" ] + expected ["b" ]
1407- ans = df .eval (
1407+ answer = df .eval (
14081408 """
14091409 c = a + b
14101410 d = c + b""" ,
14111411 inplace = True ,
14121412 )
14131413 tm .assert_frame_equal (expected , df )
1414- assert ans is None
1414+ assert answer is None
14151415
14161416 expected ["a" ] = expected ["a" ] - 1
14171417 expected ["e" ] = expected ["a" ] + 2
1418- ans = df .eval (
1418+ answer = df .eval (
14191419 """
14201420 a = a - 1
14211421 e = a + 2""" ,
14221422 inplace = True ,
14231423 )
14241424 tm .assert_frame_equal (expected , df )
1425- assert ans is None
1425+ assert answer is None
14261426
14271427 # multi-line not valid if not all assignments
14281428 msg = "Multi-line expressions are only valid if all expressions contain"
@@ -1467,15 +1467,15 @@ def test_multi_line_expression_local_variable(self):
14671467 local_var = 7
14681468 expected ["c" ] = expected ["a" ] * local_var
14691469 expected ["d" ] = expected ["c" ] + local_var
1470- ans = df .eval (
1470+ answer = df .eval (
14711471 """
14721472 c = a * @local_var
14731473 d = c + @local_var
14741474 """ ,
14751475 inplace = True ,
14761476 )
14771477 tm .assert_frame_equal (expected , df )
1478- assert ans is None
1478+ assert answer is None
14791479
14801480 def test_multi_line_expression_callable_local_variable (self ):
14811481 # 26426
@@ -1487,15 +1487,15 @@ def local_func(a, b):
14871487 expected = df .copy ()
14881488 expected ["c" ] = expected ["a" ] * local_func (1 , 7 )
14891489 expected ["d" ] = expected ["c" ] + local_func (1 , 7 )
1490- ans = df .eval (
1490+ answer = df .eval (
14911491 """
14921492 c = a * @local_func(1, 7)
14931493 d = c + @local_func(1, 7)
14941494 """ ,
14951495 inplace = True ,
14961496 )
14971497 tm .assert_frame_equal (expected , df )
1498- assert ans is None
1498+ assert answer is None
14991499
15001500 def test_multi_line_expression_callable_local_variable_with_kwargs (self ):
15011501 # 26426
@@ -1507,15 +1507,15 @@ def local_func(a, b):
15071507 expected = df .copy ()
15081508 expected ["c" ] = expected ["a" ] * local_func (b = 7 , a = 1 )
15091509 expected ["d" ] = expected ["c" ] + local_func (b = 7 , a = 1 )
1510- ans = df .eval (
1510+ answer = df .eval (
15111511 """
15121512 c = a * @local_func(b=7, a=1)
15131513 d = c + @local_func(b=7, a=1)
15141514 """ ,
15151515 inplace = True ,
15161516 )
15171517 tm .assert_frame_equal (expected , df )
1518- assert ans is None
1518+ assert answer is None
15191519
15201520 def test_assignment_in_query (self ):
15211521 # GH 8664
0 commit comments