linear_interpolation

kanon.tables.interpolations.linear_interpolation(df: DataFrame, key: Union[float, Real]) Union[float, Real][source] [edit on github]

Linear interpolation. Will prioritize taking the lower and upper value. The pd.DataFrame needs at least 2 rows.