Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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)
Comment

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']
Comment

PREVIOUS NEXT
Code Example
Python :: make a new environment conda 
Python :: python if condition 
Python :: how to plot in python 
Python :: iterating index array python 
Python :: task timed out after 3.00 seconds aws lambda python 
Python :: remove  python 
Python :: sum of prime numbers python 
Python :: pandas dataframe add two columns int and string 
Python :: change data type python 
Python :: convex hull python 
Python :: ubuntu 20.10 python 3.8 
Python :: numpy loadtxt skip header 
Python :: datetime decreasing date python 
Python :: randomly pick a value in the list 
Python :: train_test_split from sklearn.selection 
Python :: pycord discord discordpy get total slash commands and total commands regestered in your bot 
Python :: executing curl commands in python 
Python :: how to declare global variable in python 
Python :: python recursion factorial 
Python :: cosh python 
Python :: Modify a Python interpreter 
Python :: how to add custom prefix in discord.py 
Python :: matplotlib plot in second axis 
Python :: PY | websocket - client 
Python :: find average with sum and len in python 
Python :: python split 
Python :: balancing paranthesis python 
Python :: jupyter matplotlib 
Python :: make_response is not defined django 
Python :: list pakages installed in python 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =