The Python Oracle

How do I create test and train samples from one dataframe with pandas?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Popsicle Puzzles

--

Chapters
00:00 Question
00:28 Accepted answer (Score 473)
00:53 Answer 2 (Score 924)
01:14 Answer 3 (Score 398)
01:40 Answer 4 (Score 42)
02:01 Thank you

--

Full question
https://stackoverflow.com/questions/2414...

Answer 1 links:
[train_test_split]: https://scikit-learn.org/stable/modules/...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #python27 #pandas #dataframe

#avk47