Skip to content

Instantly share code, notes, and snippets.

@ashutoshkarna03
Created August 16, 2020 06:55
Show Gist options
  • Save ashutoshkarna03/3a90c9fa16371996dce574b08016101e to your computer and use it in GitHub Desktop.
Save ashutoshkarna03/3a90c9fa16371996dce574b08016101e to your computer and use it in GitHub Desktop.
is_NaN = df.isnull()
row_has_NaN = is_NaN.any(axis=1)
rows_with_NaN = df[row_has_NaN]
print(rows_with_NaN)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment