Ao rodar o seguinte comando do curso Machine Learnig : Introdução a classificação com sklearn, Aula3, topico 4
plt.scatter(teste_x.horas_esperadas, teste_x.preco, c=teste_y)
Aparece o seguinte erro:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/matplotlib/axes/_axes.py in _parse_scatter_color_args(c, edgecolors, kwargs, xsize, get_next_color_func)
4238 try: # Is 'c' acceptable as PathCollection facecolors?
-> 4239 colors = mcolors.to_rgba_array(c)
4240 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.7/dist-packages/matplotlib/axes/_axes.py in _parse_scatter_color_args(c, edgecolors, kwargs, xsize, get_next_color_func)
4244 # severe failure => one may appreciate a verbose feedback.
4245 raise ValueError(
-> 4246 f"'c' argument must be a color, a sequence of colors, or "
4247 f"a sequence of numbers, not {c}")
4248 else:
ValueError: 'c' argument must be a color, a sequence of colors, or a sequence of numbers, not finalizado
1508 1
1135 1
228 0
1041 1
2107 1
... ...
1841 1
1992 0
987 0
2064 1
292 0
[1618 rows x 1 columns]