Gostaria de saber porque a execução do código
import matplotlib.pyplot as plt
plt.scatter(teste_x.horas_esperadas, teste_x.preco, c=teste_y)
está retornando os seguintes erros:
ValueError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/matplotlib/axes/_axes.py in _parse_scatter_color_args(c, edgecolors, kwargs, xsize, get_next_color_func)
4230 try: # Is 'c' acceptable as PathCollection facecolors?
-> 4231 colors = mcolors.to_rgba_array(c)
4232 except ValueError:
9 frames
ValueError: Invalid RGBA argument: 'finalizado'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/matplotlib/axes/_axes.py in _parse_scatter_color_args(c, edgecolors, kwargs, xsize, get_next_color_func)
4236 # severe failure => one may appreciate a verbose feedback.
4237 raise ValueError(
-> 4238 f"'c' argument must be a color, a sequence of colors, or "
4239 f"a sequence of numbers, not {c}")
4240 else:
ValueError: 'c' argument must be a color, a sequence of colors, or a sequence of numbers, not finalizado
499 0
1149 1
870 1
1617 0
1896 1
... ...
151 1
1357 1
295 0
1239 1
626 1
[540 rows x 1 columns]
Como eu posso resolver?