How to delete null lines in a Dataframe?

Asked

Viewed 53 times

1

I am studying a dataset for the NBA games, and I need to know how I can remove data from the dataframe that is found as "None". Because they keep me from getting the exact amount of athletes.

Below is my dataset:

Dataset

1 answer

3


You can return those that have no missing values this way:

df[~df.isnull()]

~ serves to deny, ie is null turns into a kind of not null.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.