0
$\begingroup$

I have a dataset which has categorical variables as features. They are nominal in nature. One of the variable has 312 categories. I want to check how correlated the variables are, to check multicollinearity. To do this, i used pd.get_dummies to convert the categorical to num types. But then how do i check correlation between features, given now features list is 300+ long. The below is the description of the dataset.

enter image description here

I also used pd.factorize to mask the var with 312 categories. But i think that treatment is not correct. How do i go ahead with this.enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.