Skip to content

Commit

Permalink
Replace np.NaNs (#544)
Browse files Browse the repository at this point in the history
use `np.nan` instead
  • Loading branch information
hoffmansc authored Dec 10, 2024
1 parent e011686 commit cd7e213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/sklearn/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
fetch_german, fetch_compas, fetch_lawschool_gpa, fetch_meps)


df = pd.DataFrame([[1, 2, 3, 'a'], [5, 6, 7, 'b'], [np.NaN, 10, 11, 'c']],
df = pd.DataFrame([[1, 2, 3, 'a'], [5, 6, 7, 'b'], [np.nan, 10, 11, 'c']],
columns=['X1', 'X2', 'y', 'Z'])
basic = partial(standardize_dataset, df=df, prot_attr='Z', target='y',
dropna=False)
Expand Down

0 comments on commit cd7e213

Please sign in to comment.