我想插我的時間序列數據,使其在均勻間隔的時間線,我用下面的代碼 % interpolate the series
t = 0 : 3 : 400;
Series 1 = interp1(series 1(:,1),series 1(:,2),t,'linear');
但這錯誤消息不斷顯示出來,而且我不確定爲什麼使用griddedInterpolant 柵格矢量 錯誤不是嚴格單調遞增。 in
的docs在scipy.interpolate.interp1d(v0.17.0)說用於可選fill_value參數如下: fill_value : ... If a two-element tuple, then the first element is used as a fill value for x_new < x[0] and the second element is used fo
這裏的問題是我拉一個csv成熊貓的數據幀,看起來像這樣: Identity Date value1 value2 Random
Apple 1/1/2005 10 10 Orange
Apple 12/1/2005 1 1 Orange
我需要再調用身份蘋果,發現它的最小值和最大值的日期,插入行,即個月,以便在兩點之間進行插值,以便最終結果變成 Identity Date