import scipy #calculates correlation between a binary variable, x, and a continuous variable, y scipy.stats.pointbiserialr(x, y)
Here is what the above code is Doing:
1. Importing the scipy library
2. Calculating the correlation between a binary variable, x, and a continuous variable, y