Skip to content

Instantly share code, notes, and snippets.

@deanjamesss
Created September 14, 2020 08:54
Show Gist options
  • Select an option

  • Save deanjamesss/28551ccc21094c175fa5949cee4985f2 to your computer and use it in GitHub Desktop.

Select an option

Save deanjamesss/28551ccc21094c175fa5949cee4985f2 to your computer and use it in GitHub Desktop.
# Check to see if any rows have less than 2 elements.
under_threshold_removed = df.dropna(axis='index', thresh=2, inplace=False)
under_threshold_rows = df[~df.index.isin(under_threshold_removed.index)]
print(under_threshold_rows)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment