October 2018
Intermediate to advanced
134 pages
2h 39m
English
Now, let's actually explore the dataset so that we can see what information we have. In order to do that, we're going to print the shape of the DataFrame so that we can see how many examples are present in the dataset. We will use the following lines of code to do that:
# print the shape of the DataFrame, so we can see how many examples we haveprint 'Shape of DataFrame: {}'.format(data.shape)print data.loc[0]
This will generate the following output:

We have 292 patients with 21 attributes each, one of those being the Class label. So, we have our 10 scores, which we saw in our text file, namely age, gender, ethnicity
Read now
Unlock full access