Linting errors; additional test clarification · rs2/pandas@4b59745 (original) (raw)

`@@ -1097,7 +1097,10 @@ def test_isin(self):

`

1097

1097

`# comparison array (in_list) must be large enough so that numpy doesn't

`

1098

1098

`# do a manual masking trick that will avoid this issue altogether

`

1099

1099

`s = Series(list('abcdefghijk' * 10 ** 5))

`

1100

``

`-

in_list = [-1, 'a', 'b', 'G', 'Y', 'Z', 'E', 'K', 'E', 'S', 'I', 'R', 'R']*6

`

``

1100

`+

If numpy doesn't do the manual comparison/mask, these

`

``

1101

`+

unorderable mixed types are what cause the exception in numpy

`

``

1102

`+

in_list = [-1, 'a', 'b', 'G', 'Y', 'Z', 'E',

`

``

1103

`+

'K', 'E', 'S', 'I', 'R', 'R'] * 6

`

1101

1104

``

1102

1105

`assert s.isin(in_list).sum() == 200000

`

1103

1106

``