Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. for x in range(1,4): # int for the random seed
  2. randsamp = df.sample(frac=0.1, random_state=x)
  3. randsamp.to_csv("./sample"+str(x)+".csv",sep=';')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement