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

solved = pd.DataFrame(data, columns=['Crime Solved'])
resolution = solved.stack().value_counts()
ax = resolution.plot(kind='pie', title='Crimes solved between 1980 & 2014 (in %)', startangle=10, autopct='%.2f')
ax.set_ylabel('')