DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
panda categorical data into numerica
sex = train_dataset['Sex'].replace(['female','male'],[0,1]) print(sex)
PREVIOUS
NEXT
Tagged:
#panda
#categorical
#data
#numerica
ADD COMMENT
Topic
COMMENT
Name
5+4 =
Submit