Open nehalbhanushali opened 7 years ago
Instead, make a series of the label column as a column on the df which is being clustered.
subset['complete.label'] = pd.Series(complete.labels_, index=subset.index)
Result for : df-ing the label and concatinating the label with the df-being-clustered