I am performing a hierarchical clustering analysis in python. My variables are binary so I was wondering how to calculate the binary euclidean distance. According to the literature, it is possible to use this distance metric with this clustering technique.
I was using scipy.spatial.distance.pdist(X, metric='euclidean')
but this function uses the euclidean distance for non-binary data.
Is there any python library to calculate distance matrices based on the binary euclidean distance metric?