Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
321 views

Encode multiple values of an attributes in Pandas

I have a dataset and one of the attributes of the dataset is Race. People have multiple races on the dataset. The values for the attribute Race are following ...
Encipher's user avatar
  • 175
5 votes
3 answers
1k views

why use dummies and not different integers for categorical data? [duplicate]

I am new to stats and I want to use a regression to determine income See below table example age class location income 23 Adult London 23000 44 Adult Glasgow 45000 75 Senior Birmingham 37000 12 ...
user06931912's user avatar
0 votes
0 answers
49 views

How to decide n_componets in HashEncoding

I want to predict salary for each person depending on the job_roles, Technical skills. Column job_roles have 1500 unique roles. There is a column Technical skills (which have combination of skills) I ...
10sha25's user avatar
  • 63
0 votes
0 answers
252 views

Label-encoding nominal variables

I am aware of the practice that label encoding is preferred for ordinal variables while ...
Amit Pathak's user avatar
0 votes
1 answer
176 views

Using ANOVA to judge Yes/Sometimes/No questions ability to significantly predict a continuous variable?

I have a dataset that looks something like this: ...
Chris's user avatar
  • 101
1 vote
1 answer
2k views

How to deal with Nominal categorical with label encoding?

So if my dataset looks like this: ...
Aaditya Ura's user avatar
-1 votes
3 answers
592 views

Dealing with categorical variables - Looking for recommendations [closed]

I have the following dataset, in which the wind direction (Direccion del viento (Pos)) column is categorical, with 8 categorical values: In total Direccion del ...
bgarcial's user avatar
13 votes
4 answers
6k views

How to statistically prove if a column has categorical data or not, using Python

I have a data frame in python where I need to find all categorical variables. Checking the type of the column doesn't always work because int type can also be ...
Amit's user avatar
  • 283
1 vote
1 answer
3k views

Do I use dummy encoding or one hot encoding when trying to do regression?

I am trying to do regression for the first time using qualitative and quantitative data using scikit learn. I want to find correlations between user demographic features like age range, country, ...
pr338's user avatar
  • 219