obj_df["body_style"] = obj_df["body_style"].astype('category') obj_df.dtypes obj_df["body_style_cat"] = obj_df["body_style"].cat.codes obj_df.head()