polars-ops 0.54.4

More operations on Polars data structures
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::ops::{Add, Div, Mul, Sub};

#[cfg(feature = "interpolate")]
pub mod interpolate;
#[cfg(feature = "interpolate_by")]
pub mod interpolate_by;

fn linear_itp<T>(low: T, step: T, slope: T) -> T
where
    T: Sub<Output = T> + Mul<Output = T> + Add<Output = T> + Div<Output = T>,
{
    low + step * slope
}