Function polars::functions::pearson_corr_i
source · [−]pub fn pearson_corr_i<T>(
a: &ChunkedArray<T>,
b: &ChunkedArray<T>
) -> Option<f64> where
T: PolarsIntegerType,
<T as PolarsNumericType>::Native: ToPrimitive,
<<T as PolarsNumericType>::Native as Simd>::Simd: Add<<<T as PolarsNumericType>::Native as Simd>::Simd>,
<<T as PolarsNumericType>::Native as Simd>::Simd: Sum<<T as PolarsNumericType>::Native>,
<<T as PolarsNumericType>::Native as Simd>::Simd: SimdOrd<<T as PolarsNumericType>::Native>,
ChunkedArray<T>: ChunkVar<f64>,
<<<T as PolarsNumericType>::Native as Simd>::Simd as Add<<<T as PolarsNumericType>::Native as Simd>::Simd>>::Output == <<T as PolarsNumericType>::Native as Simd>::Simd,
Expand description
Compute the pearson correlation between two columns.