text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

pd.set_option('display.max_columns', None)
RTA_Data = pd.read_csv('../input/road-traffic-accidents/RTA Dataset.csv')

cols = []
per = []
miss_val_col = []
for col in RTA_Data.columns:
    cols.append(col)
    pert = RTA_Data[col].isnull().sum() / RTA_Data.shape[0] * 100
    per.append(pert)
    if RTA_Data[col].isnull().sum() > 0:
        miss_val_col.append(col)
df_null_pert = pd.DataFrame({'columns': cols, 'Percentage': per})
df_null_pert