【发布时间】:2019-07-02 19:08:11
【问题描述】:
我对使用 scipy.interpolate 库执行线性插值很感兴趣。数据集看起来有点像这样: DATAFRAME for interpolation between X, Y for different RUNs
我想使用这个插值函数从这个数据集中找到缺失的 Y: DATAFRAME to use the interpolation function
此处给出的运行次数仅为 3,但我正在运行的数据集将运行 1000 次。因此,如果您能建议如何使用迭代函数进行插值,将不胜感激?
from scipy.interpolate import interp1d
for RUNNumber in range(TotalRuns)
InterpolatedFunction[RUNNumber]=interp1d(X, Y)
【问题讨论】:
标签: pandas python-2.7 scipy linear-interpolation