Function polars::functions::pearson_corr_f
source · [−]pub fn pearson_corr_f<T>(
a: &ChunkedArray<T>,
b: &ChunkedArray<T>
) -> Option<<T as PolarsNumericType>::Native> where
T: PolarsFloatType,
<T as PolarsNumericType>::Native: Float,
<<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<<T as PolarsNumericType>::Native>,
<<<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.