Skip to content

Commit

Permalink
TST: make test_astype_categorical_to_other deterministic (#26244)
Browse files Browse the repository at this point in the history
  • Loading branch information
shoyer authored and jreback committed Apr 30, 2019
1 parent 9feb3ad commit 2266911
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pandas/tests/series/test_dtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,8 @@ def test_astype_from_categorical(self):

def test_astype_categorical_to_other(self):

df = DataFrame({'value': np.random.randint(0, 10000, 100)})
value = np.random.RandomState(0).randint(0, 10000, 100)
df = DataFrame({'value': value})
labels = ["{0} - {1}".format(i, i + 499) for i in range(0, 10000, 500)]
cat_labels = Categorical(labels, labels)

Expand Down

0 comments on commit 2266911

Please sign in to comment.