@@ -265,7 +265,7 @@ def test_select_dtypes(setup_path):
265265 expected = df [df ["A" ] > 0 ]
266266
267267 store .append ("df" , df , data_columns = True )
268- np_zero = np .float64 (0 ) # noqa
268+ np_zero = np .float64 (0 ) # noqa:F841
269269 result = store .select ("df" , where = ["A>np_zero" ])
270270 tm .assert_frame_equal (expected , result )
271271
@@ -683,17 +683,17 @@ def test_frame_select_complex2(setup_path):
683683 expected = read_hdf (hh , "df" , where = "l1=[2, 3, 4]" )
684684
685685 # scope with list like
686- l = selection .index .tolist () # noqa
686+ l0 = selection .index .tolist () # noqa:F841
687687 store = HDFStore (hh )
688- result = store .select ("df" , where = "l1=l " )
688+ result = store .select ("df" , where = "l1=l0 " )
689689 tm .assert_frame_equal (result , expected )
690690 store .close ()
691691
692- result = read_hdf (hh , "df" , where = "l1=l " )
692+ result = read_hdf (hh , "df" , where = "l1=l0 " )
693693 tm .assert_frame_equal (result , expected )
694694
695695 # index
696- index = selection .index # noqa
696+ index = selection .index # noqa:F841
697697 result = read_hdf (hh , "df" , where = "l1=index" )
698698 tm .assert_frame_equal (result , expected )
699699
@@ -928,7 +928,7 @@ def test_query_compare_column_type(setup_path):
928928 with ensure_clean_store (setup_path ) as store :
929929 store .append ("test" , df , format = "table" , data_columns = True )
930930
931- ts = Timestamp ("2014-01-01" ) # noqa
931+ ts = Timestamp ("2014-01-01" ) # noqa:F841
932932 result = store .select ("test" , where = "real_date > ts" )
933933 expected = df .loc [[1 ], :]
934934 tm .assert_frame_equal (expected , result )
0 commit comments