ValueError: «взрыв» должен иметь длину «x» [закрыто]Python

Программы на Python
Anonymous
ValueError: «взрыв» должен иметь длину «x» [закрыто]

Сообщение Anonymous »

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'


Подробнее здесь: https://stackoverflow.com/questions/785 ... f-length-x

Вернуться в «Python»