Skip to content

Commit

Permalink
fix SettingWithCopyWarning
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Hoffman <hoffman.sc@gmail.com>
  • Loading branch information
hoffmansc committed Dec 3, 2021
1 parent 591fb1c commit da6d549
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aif360/sklearn/datasets/meps_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ def fetch_meps(panel, *, accept_terms=None, data_home=None, cache=True,
labels=['< 10 Visits', '>= 10 Visits'])#['low', 'high'])

# TODO: let standardize_dataset handle dropna (see above todo re: extra cols)
return standardize_dataset(df.dropna(), prot_attr='RACE', target='UTILIZATION',
df = df.dropna()
return standardize_dataset(df, prot_attr='RACE', target='UTILIZATION',
sample_weight='PERWT', usecols=usecols,
dropcols=dropcols, numeric_only=numeric_only,
dropna=dropna)

0 comments on commit da6d549

Please sign in to comment.