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
import numpy as np import pandas as pd df = pd.read_csv('https://query.data.world/s/Hfu_PsEuD1Z_yJHmGaxWTxvkz7W_b0') df.loc[np.isnan(df['Product_Base_Margin']),['Product_Base_Margin']]=df['Product_Base_Margin'].mean() print(round(100*(df.isnull().sum()/len(df.index)), 2))