Skip to content

Instantly share code, notes, and snippets.

@aarong1
Created February 14, 2024 09:47
Show Gist options
  • Save aarong1/7fd021fa9fe1ead0c2b20fcef4c0c3f2 to your computer and use it in GitHub Desktop.
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
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