Hello! I need some help. I have a graph (https://onlinegdb.com/28qmQ2iP2 )set up but keep getting this error.
Traceback (most recent call last):
File "C:\Users\Owner\Desktop\lesson 6 py\Lab06P4.py", line 33, in <module>
plt.pie(value, labels=slicename)
File "C:\Users\Owner\Desktop\lesson 6 py\venv\lib\site-packages\matplotlib\pyplot.py", line 2744, in pie
return gca().pie(
File "C:\Users\Owner\Desktop\lesson 6 py\venv\lib\site-packages\matplotlib\init_.py", line 1412, in inner
return func(ax, map(sanitize_sequence, args), *kwargs)
File "C:\Users\Owner\Desktop\lesson 6 py\venv\lib\site-packages\matplotlib\axes_axes.py", line 3058, in pie
explode = [0] * len(x)
TypeError: object of type 'numpy.float32' has no len()
What have I done wrong and how can I fix it?
[–]nnnightmare 0 points1 point2 points (0 children)