Function polars::functions::pearson_corr_f
source · [−]pub fn pearson_corr_f<T>(
a: &ChunkedArray<T>,
b: &ChunkedArray<T>,
ddof: u8
) -> 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, Output = <<T as PolarsNumericType>::Native as Simd>::Simd> + Sum<<T as PolarsNumericType>::Native> + SimdOrd<<T as PolarsNumericType>::Native>,
ChunkedArray<T>: ChunkVar<<T as PolarsNumericType>::Native>,
Expand description
Compute the pearson correlation between two columns.