Skip to content

Instantly share code, notes, and snippets.

@thepycoach
Created March 6, 2021 13:50
Show Gist options
  • Select an option

  • Save thepycoach/ca43d79b62e44e07c0eba854a7df94b3 to your computer and use it in GitHub Desktop.

Select an option

Save thepycoach/ca43d79b62e44e07c0eba854a7df94b3 to your computer and use it in GitHub Desktop.
#drop row
no_director = df_netflix_2019[df_netflix_2019['director'].isnull()].index
df_netflix_2019.drop(no_director, axis=0)
#~ + .isnull()
df_netflix_2019[~df_netflix_2019['director'].isnull()]
#dropna()
df_netflix_2019.dropna(subset=['director'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment