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