Answers for "correlation between categorical and continuous variables"

1

correlation between categorical and continuous variables

import scipy
#calculates correlation between a binary variable, x, and a continuous variable, y
scipy.stats.pointbiserialr(x, y)
Posted by: Guest on September-01-2021
0

correlation between categorical and continuous variables

!pip install pingouin
#One way ANOVA test
import pingouin as pg
pg.anova(data=None, dv=None, between=None, ss_type=2, detailed=False, effsize='np2')
#dv -> dependent variable.  Column name: like 'A'
#between -> ['B','C','D']
Posted by: Guest on September-01-2021

Code answers related to "correlation between categorical and continuous variables"

Python Answers by Framework

Browse Popular Code Answers by Language