correlation_matrix

eap_pl.correlation_matrix(averages, variables)

Put Pearson correlations below the diagonal and Spearman above it.

Parameters

Name Type Description Default
averages Mapping[str, float] Average correlations keyed by the column names produced by period_correlations(). required
variables dict[str, str] Variable columns mapped to display labels, in the order used to compute the correlations. required

Returns

Name Type Description
polars.DataFrame A labeled matrix with a blank diagonal.