Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

random pick and remove index pandas

train=df.sample(frac=0.8,random_state=200)
test=df.drop(train.index)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #random #pick #remove #index #pandas
ADD COMMENT
Topic
Name
7+4 =