使用pd.sample()随机选取N行数据
df.sample(n=None, frac=None, replace=False, weights=None, random_state=None, axis=None)
输入参数见下表所示:
2024-01-22 12:18:40
df.sample(n=None, frac=None, replace=False, weights=None, random_state=None, axis=None)
输入参数见下表所示:
下一篇:触发器