Skip to content

Instantly share code, notes, and snippets.

@konverner
Created February 4, 2022 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save konverner/a7bfa6ae6c995fb082d6aa98c7828ac0 to your computer and use it in GitHub Desktop.
Save konverner/a7bfa6ae6c995fb082d6aa98c7828ac0 to your computer and use it in GitHub Desktop.
where is nan in DataFrame
nan_idx = []
for i in range(len(df)):
if True in list(df.iloc[i].isnull()):
nan_idx.append(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment