摘要: import pandas as pd data = pd.read_csv("data.csv") grouped_data = data.groupby("Group") sampled_data = grouped_data.apply(pd.DataFrame.sample, n=200, 阅读全文
posted @ 2023-09-11 16:21 cup_leo 阅读(69) 评论(0) 推荐(0) 编辑