From 3498b856d8eac4c3713e2ffba79ed3c785e81f2a Mon Sep 17 00:00:00 2001 From: Evan Duncan <60164431+eduncan16@users.noreply.github.com> Date: Sun, 24 Apr 2022 13:21:58 -0500 Subject: [PATCH] fix(a11y): changed non-inclusive language (#16) --- README.md | 2 +- medical_examination.csv | 2 +- test_module.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ceb8eba..74b2ae7 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ File name: medical_examination.csv | Age | Objective Feature | age | int (days) | | Height | Objective Feature | height | int (cm) | | Weight | Objective Feature | weight | float (kg) | -| Gender | Objective Feature | gender | categorical code | +| Sex | Objective Feature | sex | categorical code | | Systolic blood pressure | Examination Feature | ap_hi | int | | Diastolic blood pressure | Examination Feature | ap_lo | int | | Cholesterol | Examination Feature | cholesterol | 1: normal, 2: above normal, 3: well above normal | diff --git a/medical_examination.csv b/medical_examination.csv index 46ab2fb..cc6431e 100644 --- a/medical_examination.csv +++ b/medical_examination.csv @@ -1,4 +1,4 @@ -id,age,gender,height,weight,ap_hi,ap_lo,cholesterol,gluc,smoke,alco,active,cardio +id,age,sex,height,weight,ap_hi,ap_lo,cholesterol,gluc,smoke,alco,active,cardio 0,18393,2,168,62.0,110,80,1,1,0,0,1,0 1,20228,1,156,85.0,140,90,3,1,0,0,1,1 2,18857,1,165,64.0,130,70,3,1,0,0,0,1 diff --git a/test_module.py b/test_module.py index 9f886d0..090af1c 100644 --- a/test_module.py +++ b/test_module.py @@ -37,7 +37,7 @@ class HeatMapTestCase(unittest.TestCase): actual = [] for label in self.ax.get_xticklabels(): actual.append(label.get_text()) - expected = ['id', 'age', 'gender', 'height', 'weight', 'ap_hi', 'ap_lo', 'cholesterol', 'gluc', 'smoke', 'alco', 'active', 'cardio', 'overweight'] + expected = ['id', 'age', 'sex', 'height', 'weight', 'ap_hi', 'ap_lo', 'cholesterol', 'gluc', 'smoke', 'alco', 'active', 'cardio', 'overweight'] self.assertEqual(actual, expected, "Expected bar plot legend labels to be months of the year.") def test_heat_map_values(self):