Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to convert categorical data to numerical data in python

pd.get_dummies(obj_df, columns=["body_style", "drive_wheels"], prefix=["body", "drive"]).head()
Source by pbpython.com #
 
PREVIOUS NEXT
Tagged: #convert #categorical #data #numerical #data #python
ADD COMMENT
Topic
Name
5+1 =