fairlens.metrics.cramers_v¶
-
cramers_v
(sr_a, sr_b)[source]¶ Metric that calculates the corrected Cramer’s V statistic for categorical-categorical correlations, used in heatmap generation.
- Parameters
sr_a (pd.Series) – First categorical series to analyze.
sr_b (pd.Series) – Second categorical series to analyze.
- Returns
Value of the statistic.
- Return type
float