Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. In[92]: color
  2. Out[92]: ['#112623', '#BE8774', '#F38F6D', '#6AFE8E', '#FF6784', '#17D719', '#AD1EBB']
  3. In[93]: cluster_labels.values()
  4. Out[93]: dict_values([1, 2, 6, 0, 5, 4, 3])
  5. In[94]: {clust:color for clust,color in (cluster_labels.values(), color in color)}
  6. Traceback (most recent call last):
  7. File "C:\Users\sky1\PycharmProjects\untitled2\venv\lib\site-packages\IPython\core\interactiveshell.py", line 3267, in run_code
  8. exec(code_obj, self.user_global_ns, self.user_ns)
  9. File "<ipython-input-94-7e1796abb8e5>", line 1, in <module>
  10. {clust:color for clust,color in (cluster_labels.values(), color in color)}
  11. File "<ipython-input-94-7e1796abb8e5>", line 1, in <dictcomp>
  12. {clust:color for clust,color in (cluster_labels.values(), color in color)}
  13. ValueError: too many values to unpack (expected 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement