编程小白一枚,想问下如何对缺省值线性插值,网上查到都是直接填充平均值,线性插值有什么简便的方法吗?
示例:
2017/11/7 1
2017/11/8 2
2017/11/9 None
2017/11/10 None
2017/11/11 5
2017/11/12 None
2017/11/13 None
2017/11/14 None
2017/11/15 None
2017/11/16 15
2017/11/17 None
2017/11/18 None
2017/11/19 None
2017/11/20 11
我想让缺省值填充成
2017/11/7 1
2017/11/8 2
2017/11/9 3
2017/11/10 4
2017/11/11 5
2017/11/12 7
2017/11/13 9
2017/11/14 11
2017/11/15 13
2017/11/16 15
2017/11/17 14
2017/11/18 13
2017/11/19 12
2017/11/20 11
PS:类似如果想三次样条插值呢?