对pandas中的数据进行随机抽样

方案1

https://www.jianshu.com/p/5cf2abe4385c

 方案2:

https://www.pythonf.cn/read/91137

 

方案3:

x_train, x_test, y_train, y_test = train_test_split(data, label, test_size=0.15, ramdon_state=0)

posted @ 2022-03-20 21:37  bH1pJ  阅读(182)  评论(0编辑  收藏  举报