def clarans_labels(clarans_object):
    labels_clarans = clarans_object.get_clusters()
    labels = pd.DataFrame(labels_clarans).T.melt(var_name='clusters').dropna()
    labels['value'] = labels.value.astype(int)
    labels = labels.sort_values(['value']).set_index('value').values.flatten()
    return labels
def clarans_labels(clarans_object):
    labels_clarans = clarans_object.get_clusters()
    labels = pd.DataFrame(labels_clarans).T.melt(var_name='clusters').dropna()
    labels['value'] = labels.value.astype(int)
    labels = labels.sort_values(['value']).set_index('value').values.flatten()
    return labels