random_state= rng.normal()。
Generatorsample仅更改发电机初始化的方式,它不会更改使用的分布。随机采样是
Generator
sample
现在假设您想用遵循正态分布的权重采样数据框的行,可以使用
weights