Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 11, 2023
1 parent db57ab3 commit e75e68d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/fairlens/metrics/unified.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ def _correlation_matrix_helper(
cat_num_metric: Callable[[pd.Series, pd.Series], float] = kruskal_wallis,
cat_cat_metric: Callable[[pd.Series, pd.Series], float] = cramers_v,
) -> float:

a_type = utils.infer_distr_type(sr_a)
b_type = utils.infer_distr_type(sr_b)

Expand Down
1 change: 0 additions & 1 deletion src/fairlens/scorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ def _calculate_distance(
method: str = "dist_to_all",
p_value: bool = False,
) -> pd.DataFrame:

unique = df[sensitive_attrs].drop_duplicates()

dist = []
Expand Down
1 change: 0 additions & 1 deletion src/fairlens/sensitive/detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ def detect_names_df(
sensitive_dict = _detect_names_dict(cols, threshold, str_distance, attr_synonym_dict)

if deep_search:

for col in cols:
# Series containing only the unique values of the analyzed column.
uniques = pd.Series(df[col].unique())
Expand Down

0 comments on commit e75e68d

Please sign in to comment.