Pandas dropna - How to Find Missing Data

preview_player
Показать описание
The Pandas dropna function will allow you to easily filter out NULL or missing data. This video will show you the mechanics to apply this filter to your dataframes.

After creating some fake data the video shows you how to select every other row using the .loc() method. This is how we are able to set some of the columns to be NULL.

We also sneak in another handy .isna() pandas function that will return True or False if the row is missing data or if it not. If you missed my video on .isin() which is another powerful Pandas function, you can check it our here:

Even though we are able to get to the result we wanted using .isin(), it is so much more convenient to use the .dropna() function. After we get it working with isin, we then show how it can also be done using dropna and you be the judge.

Рекомендации по теме