Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要绘制一些数据的ECDF。我发现我可以做到
ecdf = sm.distributions.ECDF(sample) x = np.linspace(min(sample), max(sample)) y = ecdf(x) plt.step(x, y)
使用matplotlib和statsmodelsPython 包。
matplotlib
statsmodels
我的问题是该变量sample包含大约 1 GB 的数据,我无法一次将其全部加载到内存中。
sample
如何在较小的切片中加载数据时绘制 ECDF?