File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2388,7 +2388,7 @@ def test_isin_int_df_string_search(self):
2388
2388
def test_isin_nan_df_string_search (self ):
2389
2389
"""Comparing df with nan value (np.nan,2) with a string at isin() ("NaN")
2390
2390
-> should not match values because np.nan is not equal str NaN """
2391
- df = DataFrame ({"values" : [np .nan , 2 ]})
2391
+ df = pd . DataFrame ({"values" : [np .nan , 2 ]})
2392
2392
result = df .isin (["NaN" ])
2393
2393
expected_false = pd .DataFrame ({"values" : [False , False ]})
2394
2394
tm .assert_frame_equal (result , expected_false )
@@ -2397,7 +2397,7 @@ def test_isin_nan_df_string_search(self):
2397
2397
def test_isin_float_df_string_search (self ):
2398
2398
"""Comparing df with floats (1.4245,2.32441) with a string at isin() ("1.4245")
2399
2399
-> should not match values because float 1.4245 is not equal str 1.4245"""
2400
- df = DataFrame ({"values" : [1.4245 , 2.32441 ]})
2400
+ df = pd . DataFrame ({"values" : [1.4245 , 2.32441 ]})
2401
2401
result = df .isin (["1.4245" ])
2402
2402
expected_false = pd .DataFrame ({"values" : [False , False ]})
2403
2403
tm .assert_frame_equal (result , expected_false )
You can’t perform that action at this time.
0 commit comments