We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2c8ae3 commit 532ba5cCopy full SHA for 532ba5c
pandas/tests/window/test_rolling.py
@@ -368,9 +368,9 @@ def test_rolling_window_as_string():
368
date_today = datetime.now()
369
days = pd.date_range(date_today, date_today + timedelta(365), freq="D")
370
371
- np.random.seed(seed=421)
+ npr = np.random.RandomState(seed=421)
372
373
- data = np.random.randint(1, high=100, size=len(days))
+ data = npr.randint(1, high=100, size=len(days))
374
df = DataFrame({"DateCol": days, "metric": data})
375
376
df.set_index("DateCol", inplace=True)
0 commit comments