import pandas as pd df = pd.read_csv(\'https://query.data.world/s/Hfu_PsEuD1Z_yJHmGaxWTxvkz7W_b0\') percent= 100*(len(df.loc[:,df.isnull().sum(axis=0)>=1 ].index) / l
single line solution
df.isnull().mean().round(4).mul(100).sort_values(ascending=False)