File tree 1 file changed +3
-3
lines changed
pandas/tests/frame/methods
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -189,15 +189,15 @@ def test_isin_empty_datetimelike(self):
189
189
tm .assert_frame_equal (result , expected )
190
190
result = df1_td .isin (df3 )
191
191
tm .assert_frame_equal (result , expected )
192
-
192
+
193
193
def test_isin_int_df_string_search (self ):
194
- #Comparing df with int`s with a string at isin() -> should not match values
194
+ #Comparing df with int`s (1,2) with a string at isin() ("1") -> should not match values because int 1 is not equal str 1
195
195
df = pd .DataFrame ({"values" : [1 ,2 ]})
196
196
result = df .isin (["1" ])
197
197
expected_false = pd .DataFrame ({"values" : [False , False ]})
198
198
tm .assert_frame_equal (result , expected_false )
199
199
200
- #Comparing df with int`s with a int at isin() -> should find the value
200
+ #Comparing df with int`s with a int at isin() -> should be fine
201
201
result = df .isin ([1 ])
202
202
expected_true = pd .DataFrame ({"values" : [True , False ]})
203
203
tm .assert_frame_equal (result , expected_true )
You can’t perform that action at this time.
0 commit comments