kanon.tables.interpolations — Interpolations

kanon.tables.interpolations Module

Common interpolation methods are defined in this module.

There are 2 types of interpolation functions :

Single-Point Interpolators, which interpolate on a single value

linear_interpolation

quadratic_interpolation

Whole Interpolators, which interpolate on every NaN value

distributed_interpolation

Functions

linear_interpolation(df, key)

Linear interpolation.

quadratic_interpolation(df, key)

Quadratic interpolation, from Lagrange Will prioritize taking 2 values before the keys and 1 after.

distributed_interpolation(df, direction)

Applies distributed interpolation on a DataFrame with a regularly stepped index.