Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to convert categorical data to numerical data in python

obj_df["body_style"] = obj_df["body_style"].astype('category')
obj_df.dtypes
Source by pbpython.com #
 
PREVIOUS NEXT
Tagged: #convert #categorical #data #numerical #data #python
ADD COMMENT
Topic
Name
5+8 =