Skip to content

Commit

Permalink
Minor polars updates
Browse files Browse the repository at this point in the history
  • Loading branch information
abajpai15 committed Apr 3, 2024
1 parent 5486ccd commit fdf3171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataprofiler/profilers/profiler_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ def perform_chi_squared_test_for_homogeneity(
# If one or less categories, we have zero/negative degrees of freedom,
# which is not an appropriate value for this context
num_cats = len(cat_counts)
if len(cat_counts) <= 1:
if num_cats <= 1:
warnings.warn(
"Insufficient number of categories. "
"Chi-squared test cannot be performed.",
Expand Down

0 comments on commit fdf3171

Please sign in to comment.