Answers for "interpolate missing data python"

0

interpolate missing data python

>>> s = pd.Series([0, 1, np.nan, 3])
>>> s
0    0.0
1    1.0
2    NaN
3    3.0
dtype: float64
>>> s.interpolate()
0    0.0
1    1.0
2    2.0
3    3.0
dtype: float64
Posted by: Guest on August-05-2021

Code answers related to "interpolate missing data python"

Python Answers by Framework

Browse Popular Code Answers by Language