Skip to content

Commit 86c517e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5030711 commit 86c517e

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

src/fairlens/metrics/unified.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ def _correlation_matrix_helper(
177177
cat_num_metric: Callable[[pd.Series, pd.Series], float] = kruskal_wallis,
178178
cat_cat_metric: Callable[[pd.Series, pd.Series], float] = cramers_v,
179179
) -> float:
180-
181180
a_type = utils.infer_distr_type(sr_a)
182181
b_type = utils.infer_distr_type(sr_b)
183182

src/fairlens/scorer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,6 @@ def _calculate_distance(
323323
method: str = "dist_to_all",
324324
p_value: bool = False,
325325
) -> pd.DataFrame:
326-
327326
unique = df[sensitive_attrs].drop_duplicates()
328327

329328
dist = []

src/fairlens/sensitive/detection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ def detect_names_df(
8181
sensitive_dict = _detect_names_dict(cols, threshold, str_distance, attr_synonym_dict)
8282

8383
if deep_search:
84-
8584
for col in cols:
8685
# Series containing only the unique values of the analyzed column.
8786
uniques = pd.Series(df[col].unique())

0 commit comments

Comments
 (0)