When I use the following code I selectively see a map or get the error ValueError: cannot insert Cluster Labels, already exists
. Could someone please explain? Additionally, I used the term "lable" and that worked somewhat too. Something is odd here.
# add clustering labels
neighbourhoods_venues_sorted.insert(0, 'Cluster Labels', kmeans.labels_)
toronto_merged = df_toronto
# merge toronto_grouped with toronto_data to add latitude/longitude for each neighborhood
toronto_merged = toronto_merged.join(neighborhoods_venues_sorted.set_index('Neighbourhood'), on='Neighbourhood')
toronto_merged.head() # check the last columns!