Skip to content

Commit 4b59745

Browse files
committed
Linting errors; additional test clarification
1 parent 186607b commit 4b59745

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/tests/series/test_analytics.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,10 @@ def test_isin(self):
10971097
# comparison array (in_list) must be large enough so that numpy doesn't
10981098
# do a manual masking trick that will avoid this issue altogether
10991099
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
11011104

11021105
assert s.isin(in_list).sum() == 200000
11031106

0 commit comments

Comments
 (0)