Skip to content

Commit

Permalink
Linting errors; additional test clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan243 committed Jul 18, 2017
1 parent 186607b commit 4b59745
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pandas/tests/series/test_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,10 @@ def test_isin(self):
# comparison array (in_list) must be large enough so that numpy doesn't
# do a manual masking trick that will avoid this issue altogether
s = Series(list('abcdefghijk' * 10 ** 5))
in_list = [-1, 'a', 'b', 'G', 'Y', 'Z', 'E', 'K', 'E', 'S', 'I', 'R', 'R']*6
# If numpy doesn't do the manual comparison/mask, these
# unorderable mixed types are what cause the exception in numpy
in_list = [-1, 'a', 'b', 'G', 'Y', 'Z', 'E',
'K', 'E', 'S', 'I', 'R', 'R'] * 6

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

Expand Down

0 comments on commit 4b59745

Please sign in to comment.