DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+1 =
Submit