Skip to content

Commit

Permalink
Fix test_groupby_large_random_integers, which was occasionally creati…
Browse files Browse the repository at this point in the history
…ng a 0-rows frame
  • Loading branch information
st-pasha committed May 25, 2018
1 parent 2af74d1 commit 4e79667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def test_groupby_large_random_integers(seed):
chunks = ([random.sample(range(n0), random.randint(1, n0))] +
[random.sample([0] * 100 + list(range(256)), random.randint(1, 20))
for i in range(ngrps1)])
n = int(random.expovariate(0.0001))
n = int(random.expovariate(0.0001)) + 10
sample = [sum(random.choice(chunks[i]) << (8*i) for i in range(len(chunks)))
for _ in range(n)]
nuniques = len(set(sample))
Expand Down

0 comments on commit 4e79667

Please sign in to comment.