import seaborn as sns
sns.set(rc={'figure.figsize': (13, 13)})
sns.scatterplot(x=visualizacao[:, 0],
y=visualizacao[:, 1],
hue=modelo.labels_,
palette=sns.color_palette('Set1', 3))
Ao rodar o código acima, retorna a seguinte mensagem de erro:
ValueError Traceback (most recent call last) in () 8 y=visualizacao[:, 1], 9 hue=modelo.labels_, ---> 10 palette=sns.color_palette('Set1', 3)) 11
6 frames /usr/local/lib/python3.6/dist-packages/pandas/core/internals/construction.py in extract_index(data) 363 lengths = list(set(raw_lengths)) 364 if len(lengths) > 1: --> 365 raise ValueError("arrays must all be same length") 366 367 if have_dicts:
ValueError: arrays must all be same length