Ao executar este código abaixo ocorre um erro:
import seaborn as sns
sns.set( rc={'figure.figsize':(13,13)})
sns.scatterplot(x=visualizacao[:,0],
y=visualizacao[:,1],
hue=modelo.labels_)
erro:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-106-965295a8a1e3> in <module>()
3 sns.scatterplot(x=visualizacao[:,0],
4 y=visualizacao[:,1],
----> 5 hue=modelo.labels_)
9 frames
/usr/local/lib/python3.6/dist-packages/pandas/core/internals/construction.py in extract_index(data)
395 lengths = list(set(raw_lengths))
396 if len(lengths) > 1:
--> 397 raise ValueError("arrays must all be same length")
398
399 if have_dicts:
ValueError: arrays must all be same length