How to split groupby dataframe in a given ratio?

后端 未结 0 1022
北海茫月
北海茫月 2021-02-02 10:01

In Machine learning sitution, we usually split data into trainset and testset.

for example, in a dataframe, i need to keep 70% data as trainset, the last 30% is testset.<

相关标签:
回答
  • 消灭零回复
提交回复
热议问题