pandas - make a column dtype object or factor,df['col_name'] = df['col_name'].astype('category')