plt.subplot(323)
plt.title('Fatalities by Type of Injury : Pie Chart', color='#00868B', weight='bold', fontsize=14)
my_xpl = [0.0, 0.0, 0.1, 0.20]
df['type_of_injury'].value_counts().plot(kind='pie', colors=my_col, explode=my_xpl, legend=None, ylabel='', counterclock=False, startangle=150, wedgeprops={'alpha':0.5, 'edgecolor' : 'white','linewidth': 0.5, 'antialiased': True}, autopct='%1.1f')
ValueError
Cell In[22], line 21
19 plt.title('Fatalities by Type of Injury : Pie Chart', color='#00868B', weight='bold', fontsize=14)
20 my_xpl = [0.0, 0.0, 0.1, 0.20]
---> 21 df['type_of_injury'].value_counts().plot(kind='pie', colors=my_col, explode=my_xpl, legend=None, ylabel='', counterclock=False, startangle=150,
ValueError: 'explode' must be of length 'x'
New contributor
Nadji Bouloudani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.