Skip to content

Instantly share code, notes, and snippets.

@jacobod
Created March 15, 2018 04:09
Show Gist options
  • Save jacobod/b60d7fc6134ef3bed51e9de70b7ba06f to your computer and use it in GitHub Desktop.
Save jacobod/b60d7fc6134ef3bed51e9de70b7ba06f to your computer and use it in GitHub Desktop.
for col in enron_df.columns:
if str(enron_df[col].dtype) != 'bool':
print col,(enron_df[enron_df[col] !='NaN'][col].count()) \
,round((enron_df[enron_df[col] !='NaN'][col].count())/ \
(float(enron_df.shape[0])),2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment