import scipy #calculates correlation between a binary variable, x, and a continuous variable, y scipy.stats.pointbiserialr(x, y)