微信扫一扫打赏支持
摘要: pandas打乱数据集 一、总结 一句话总结: pandas可以用sample方法返回random sample,可以用reset_index方法reset打乱之后的index df=df.sample(frac=1.0) #打乱所有数据 df=df.reset_index(drop=True) # 阅读全文
posted @ 2020-09-13 03:31 范仁义 阅读(865) 评论(0) 推荐(0)