I\'m using cdist from SciPy to compute pairwise element on 1D array, I\'m using it like this :
cdist
SciPy
import numpy as np import textdistan