File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -557,17 +557,17 @@ def test_empty(self, empty):
557
557
558
558
def test_regression_issue_19356 (self ):
559
559
# Regression test for GH19356
560
- l = [- 9 , - 0.5 ]
560
+ comp_list = [1 , 0.5 ]
561
561
expected = np .array ([True , False ])
562
562
563
- series_float = pd .Series ([- 9.0 , 0.0 ])
564
- result_float = series_float .isin (l )
565
- tm .assert_numpy_array_equal (expected , result_float .values )
566
-
567
- series_int = pd .Series ([- 9 , 0 ])
568
- result_int = series_int .isin (l )
563
+ series_int = pd .Series ([1 , 0 ])
564
+ result_int = series_int .isin (comp_list )
569
565
tm .assert_numpy_array_equal (expected , result_int .values )
570
566
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 )
570
+
571
571
572
572
class TestValueCounts (object ):
573
573
You can’t perform that action at this time.
0 commit comments