python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
sklearn LabelEncoder to combine multiple values into a single label
I am looking to run classification on a column that has few possible values, but i want to consolidate them into fewer labels.
for example, a job may have multiple end states: success, fail, error, ki...

Ehud Kaldor
Votes: 0
Answers: 1
LabelEncoding large amounts of categorical data
I have a dataset with 39 categorical and 27 numerical features. I am trying to encode the categorical data and need to be able to inverse transform and call transform for each column again. Is there a...
Tom_Scott
Votes: 0
Answers: 1
LabelEncoding in Pandas on a column with list of strings across rows
I would like to LabelEncode a column in pandas where each row contains a list of strings. Since a similar string/text carries a same meaning across rows, encoding should respect that, and ideally enco...

TwinPenguins
Votes: 0
Answers: 1
A function for onehotencoding and labelencoding in a dataframe
I keep getting AttributeError: 'DataFrame' object has no attribute 'column' when I run the function on a column in a dataframe
def reform (column, dataframe):
if dataframe.column.nunique() > 2...
Tolulope Beckley
Votes: 0
Answers: 1