@@ -557,16 +557,17 @@ def test_empty(self, empty):
557
557
558
558
def test_regression_issue_19356 (self ):
559
559
# Regression test for GH19356
560
- comp_list = [1 , 0.5 ]
561
- expected = np .array ([True , False ])
560
+ result1 = pd .Series ([1 , 0 ]).isin ([1 , 0.5 ])
561
+ expected1 = np .array ([True , False ])
562
+ tm .assert_numpy_array_equal (expected1 , result1 .values )
562
563
563
- series_int = pd .Series ([1 , 0 ])
564
- result_int = series_int . isin ( comp_list )
565
- tm .assert_numpy_array_equal (expected , result_int .values )
564
+ result2 = pd .Series ([1.0 , 0.0 ]). isin ([ 1 , 0.5 ])
565
+ expected2 = np . array ([ True , False ] )
566
+ tm .assert_numpy_array_equal (expected2 , result2 .values )
566
567
567
- series_float = pd .Series ([1. 0 , 0.0 ])
568
- result_float = series_float . isin ( comp_list )
569
- tm .assert_numpy_array_equal (expected , result_float .values )
568
+ result3 = pd .Series ([1 , 0 ]). isin ([ 1. 0 , 0.5 ])
569
+ expected3 = np . array ([ True , False ] )
570
+ tm .assert_numpy_array_equal (expected3 , result3 .values )
570
571
571
572
572
573
class TestValueCounts (object ):
0 commit comments