Created
September 14, 2020 08:54
-
-
Save deanjamesss/28551ccc21094c175fa5949cee4985f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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