text_plain_output_1.png image_output_1.png
import numpy as np
import pandas as pd
import matplotlib as mpl
import matplotlib.pyplot as plt
plt.style.use('fivethirtyeight')
data = pd.read_csv('../input/database.csv', na_values=['NA'], dtype='unicode')
years = pd.DataFrame(data, columns=['Year'])
count_years = years.stack().value_counts()
homicides = count_years.sort_index(axis=0, ascending=False)
homicides.plot(kind='barh', fontsize=10, width=0.5, figsize=(12, 10), title='Homicides in EEUU between 1980 and 2014')