from sklearn.cluster import HDBSCAN

hdbscan = HDBSCAN(min_cluster_size=12)
hdbscan.fit(data)
labels = hdbscan.labels_