Skip to content

Commit

Permalink
Fix seed in daily stock
Browse files Browse the repository at this point in the history
Previously we moved all seeds to all partitions.
Now we just move one (as intended)
  • Loading branch information
mrocklin committed Mar 12, 2017
1 parent d39bf76 commit b24cabb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dask/dataframe/io/demo.py
Expand Up @@ -192,7 +192,7 @@ def daily_stock(symbol, start, stop, freq=pd.Timedelta(seconds=1),
s = df.iloc[i]
part = delayed(generate_day)(s.name, s.loc['Open'], s.loc['High'], s.loc['Low'],
s.loc['Close'], s.loc['Volume'],
freq=freq, random_state=seeds)
freq=freq, random_state=seed)
parts.append(part)
divisions.append(s.name + pd.Timedelta(hours=9))

Expand Down

0 comments on commit b24cabb

Please sign in to comment.