Commit 1ef12541 authored by Venkat Malladi's avatar Venkat Malladi
Browse files

Revert patients to unknown.

parent 2bc78e77
Pipeline #5084 failed with stage
in 3 seconds
......@@ -71,7 +71,6 @@ def convert_race(merged):
merged.loc[merged['RACE'] == 'AmIndAN', 'RACE'] = 'American Indian'
merged.loc[merged['RACE'] == 'HawPacIs', 'RACE'] = 'Hawaiian Pacific Islander'
merged.loc[merged['RACE'] == 'Unknown', 'RACE'] = 'Other'
return merged
......
......@@ -77,7 +77,7 @@ def test_check_race_hawpacis(demographic_2):
def test_check_race_unknown(demographic_2):
demographic_2.loc[934, 'RACE'] = 'Unknown'
check_race_hawpacis = transform_patients.convert_race(demographic_2)
assert check_race_hawpacis.loc[934,'RACE'] == 'Other'
assert check_race_hawpacis.loc[934,'RACE'] == 'Unknown'
@pytest.mark.unit
......
......@@ -4,16 +4,16 @@ mrn,gender,ethnicity,race,age,age_units
398,Female,Non-hispanic,Black,72,years
215,Female,Non-hispanic,White,34,years
904,Male,Non-hispanic,White,34,years
411,Female,Unknown,Other,79,years
411,Female,Unknown,Unknown,79,years
266,Male,Hispanic,White,62,years
707,Male,Non-hispanic,American Indian,82,years
350,Female,Unknown,Other,28,years
350,Female,Unknown,Unknown,28,years
399,Male,Non-hispanic,Asian,78,years
903,Female,Non-hispanic,White,23,years
628,Male,Non-hispanic,White,21,years
558,Male,Hispanic,White,44,years
590,Female,Hispanic,Other,38,years
822,Female,Unknown,Other,90 or above,years
822,Female,Unknown,Unknown,90 or above,years
532,Male,Declined,Declined,47,years
687,Male,Non-hispanic,White,54,years
423,Female,Declined,White,71,years
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment