text_html_output_1.png
import pandas as pd

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

df = pd.read_csv('/kaggle/input/gun-violence-data/gun-violence-data_01-2013_03-2018.csv')

p_null = (len(df) - df.count()) * 100.0 / len(df)
p_null

train = df[['date', 'state', 'city_or_county', 'address', 'n_killed', 'n_injured']]
df.isnull().any()

year_wise_total = df[['incident_id']].groupby(df['year']).count()
top_year = year_wise_total.sort_values(by='incident_id', ascending=False)
print(top_year)
top_year.plot.barh()
del top_year