Created
February 14, 2024 09:47
-
-
Save aarong1/7fd021fa9fe1ead0c2b20fcef4c0c3f2 to your computer and use it in GitHub Desktop.
Simple one-liner to test for if all the entries of the factor (group by) column are present and non NULL/non NA
This file contains 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
import pandas | |
projects_df.set_index('id').isna().groupby(level=0).sum()['ServiceAccount'].sum() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment