Answers for "how to make a column a factor in pandas"

0

how to make a column a factor in pandas

df['col_name'] = df['col_name'].astype('category')
Posted by: Guest on November-20-2020

Code answers related to "how to make a column a factor in pandas"

Python Answers by Framework

Browse Popular Code Answers by Language