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