pandas随机抽取1000行

https://blog.csdn.net/zhengxu25689/article/details/87347700/

data = data.sample(n=1000,random_state=1)  #随机抽取1000行
posted @ 2022-03-20 21:38  bH1pJ  阅读(338)  评论(0编辑  收藏  举报