Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/363.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何从给定分布的数据帧中提取N行_Python_Pandas - Fatal编程技术网

Python 如何从给定分布的数据帧中提取N行

Python 如何从给定分布的数据帧中提取N行,python,pandas,Python,Pandas,以下是我的数据帧的分布: 我想从数据帧中提取N行,这样新的N行将保持给定的对数正态分布。我估计该分布的mu 9.9和sigma 0.7 我需要这样的功能: df=函数(数据帧、要采集的样本数、μ、σ)

以下是我的数据帧的分布:

我想从数据帧中提取N行,这样新的N行将保持给定的对数正态分布。我估计该分布的mu 9.9和sigma 0.7

我需要这样的功能:

df=函数(数据帧、要采集的样本数、μ、σ)