linear_interpolation
- kanon.tables.interpolations.linear_interpolation(df: pandas.core.frame.DataFrame, key: Union[float, numbers.Real]) Union[float, numbers.Real] [source] [edit on github]
Linear interpolation. Will prioritize taking the lower and upper value. The
pd.DataFrame
needs at least 2 rows.