Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert to category data type

df = df['col_name'].astype('category')
Source by campus.datacamp.com #
 
PREVIOUS NEXT
Tagged: #convert #category #data #type
ADD COMMENT
Topic
Name
1+5 =