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