I\'m aware of DataFrame.sample(), but how can I do this and also remove the sample from the dataset? (Note: AFAIK this has nothing to do with sampling with repl
DataFrame.sample()
pandas random sample :
train=df.sample(frac=0.8,random_state=200) test=df.drop(train.index)