过滤器h =按正态分布钟形曲线排序

时间:2019-05-12 16:28:15

标签: python pandas scipy

我需要在我的列Product_name中为每个产品生成正态分布钟形曲线。

我目前正在使用此代码,并为我的所有产品获取钟形曲线。我该如何过滤?

请注意,我正在读取CSV文件。

h=sorted(df1['Weight_g'])
fit = stats.norm.pdf(h, np.mean(h), np.std(h))
pl.plot(h,fit,'-o')

pl.hist(h,normed=True)      

pl.show()

0 个答案:

没有答案
相关问题