Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

get feature names from one hot encoder

# You can pass the list with original column names to get_feature_names:
encoder.get_feature_names(['Sex', 'AgeGroup'])

# output
# ['Sex_female', 'Sex_male', 'AgeGroup_0', 'AgeGroup_15',
#  'AgeGroup_30', 'AgeGroup_45', 'AgeGroup_60', 'AgeGroup_75']
Comment

PREVIOUS NEXT
Code Example
Python :: how to create dataframe from rdd 
Python :: python you can think pad baldi 
Python :: talib 
Python :: insertar valor python 
Python :: convert python code to c++ online 
Python :: player to walk on the surface 
Python :: python launch ipython from script 
Python :: idiomatic python 
Python :: Find dataframe column values containing a certain string 
Python :: pip is not recognized as an internal or external command 
Python :: how to read then overwrite a file with python with truncate 
Python :: real python linear regression 
Python :: Quiver Simple Demo 
Python :: how to resolve This typically means that you attempted to use functionality that needed an active HTTP request. Consult the documentation on testing for information about how to avoid this problem. in thread python 
Python :: python opendatasets 
Python :: how do i make snake game using python for beginners without pygame 
Python :: while my_input != "exit": 
Python :: vijay 
Python :: how to make an instagram report bot python 
Python :: python tf.maximum 
Python :: django celery email 
Python :: where is memory and register in python python 
Python :: reminder application with notification in python 
Python :: fill turtle python 3 
Python :: python copy list from index 
Python :: normalize a distribution plot 
Python :: how to get each word in a string in python 
Python :: python Write a program to reverse an array or string 
Python :: how to extends page in django 
Python :: python backtest 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =