clarite.describe.percent_na

clarite.describe.percent_na(data:pandas.core.frame.DataFrame)

Return the percent of observations that are NA for each variable

Parameters
data: pd.DataFrame

The DataFrame to be described

Returns
result: pd.DataFrame

DataFrame listing percent NA for each variable

Examples

>>> import clarite
>>> clarite.describe.percent_na(df)
   variable  percent_na
0  SDDSRVYR     0.00000
1    female     0.00000
2    LBXHBC     4.99321
3    LBXHBS     4.98730