Sign In for Full Access

Quick access through the institutional single sign-on Manchester Met Sign In
Skip this for now
|
Public Access Here

Sign In for Free Access

Login with email for free guest access to a range of Rise content
Go!
Logging You In!
Incorrect Password (Click Here to Reset)! Passwords Must Match Password must be more than 8 characters
Skip this for now
|
Man Met Access Here
menu

Using Charts to Understand Data

When working with data, you should always be aware that values could be missing.

.isna() – is a method that will tell you you how many NaN’s there are by returning the value True. NaN stands for Not a Number (i.e. blank).

So if we run this code with the Titanic dataset…

…we can see what data is missing by looking where the values have returned as True!

Watch the video to learn more about the significance of missing values in data.

OPTIONAL

You can also run the sum method on data to get a clearer idea of the number of NaNs in your dataset at first glance:

So we can see clearly now that there is some data missing from some of the columns:

We can also use the ~ character to show this. It is the reverse of the isna() method.

What does the bar chart tell you about the data?

By looking at the chart above, you can see the data that is present. However, it can also tell you what is missing. What kind of data is missing from this dataset?

OPTIONAL