Question: Write a python code Upload the diabetes data set and do the following. * Remove the null values if there is any and check the
Write a python code Upload the diabetes data set and do the following. * Remove the null values if there is any and check the data types of all the variables to make sure that variables are labeled correctly. Report the dimensions of the data and use the describe function to display various facts about the data. * The Glucose variable lists all the Pima Indian women's glucose in the data set after 2 hours of the glucose tolerance test. Suppose a prediabetic person's blood glucose ranges between 140 and 199 mg/dl (both included). Also, anybody who has a BMI of more than 30 is obese. Find out how many prediabetic Pima Indian women who were obese did not have diabetes. Make at least one more observation about these women by looking at the data you came up with.
Pregnancies Glucose BloodPressure SkinThickness Insulin BMI \ 0 6 148 72 35 0 33.6 2 8 183 64 0 0 23.3 8 2 197 70 45 543 30.5 11 10 168 74 0 0 38.0 13 1 189 60 23 846 30.1 .. ... ... ... ... ... ... 749 6 162 62 0 0 24.3 753 0 181 88 44 510 43.3 754 8 154 78 32 0 32.4 759 6 190 92 0 0 35.5 761 9 170 74 31 0 44.0 DiabetesPedigreeFunction Age Outcome 0 0.627 50 1 2 0.672 32 1 8 0.158 53 1 11 0.537 34 1 13 0.398 59 1 .. ... ... ... 749 0.178 50 1 753 0.222 26 1 754 0.443 45 1 759 0.278 66 1 761 0.403 43 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
