Function polars_plan::dsl::functions::spearman_rank_corr
source · pub fn spearman_rank_corr(
a: Expr,
b: Expr,
ddof: u8,
propagate_nans: bool,
) -> Expr
Available on crate features
rank
and propagate_nans
and cov
only.Expand description
Compute the spearman rank correlation between two columns. Missing data will be excluded from the computation.
§Arguments
- ddof Delta degrees of freedom
- propagate_nans
If
true
anyNaN
encountered will lead toNaN
in the output. If tofalse
thenNaN
are regarded as larger than any finite number and thus lead to the highest rank.