# Create a column with the total arrests for each officerdf['total_arrests']=df['jan_arrests']+df['feb_arrests']+df['march_arrests']df

officer_name

jan_arrests

feb_arrests

march_arrests

total_arrests

0

Jason

4

25

5

34

1

Molly

24

94

43

161

2

Tina

31

57

23

111

3

Jake

2

62

23

87

4

Amy

3

70

51

124

Make plot

# Create a list of colors (from iWantHue)colors=["#E13F29","#D69A80","#D63B59","#AE5552","#CB5C3B","#EB8076","#96624E"]# Create a pie chartplt.pie(# using data total)arrestsdf['total_arrests'],# with the labels being officer nameslabels=df['officer_name'],# with no shadowsshadow=False,# with colorscolors=colors,# with one slide exploded outexplode=(0,0,0,0,0.15),# with the start angle at 90%startangle=90,# with the percent listed as a fractionautopct='%1.1f%%',)# View the plot drop aboveplt.axis('equal')# View the plotplt.tight_layout()plt.show()