pandas choose categorycal values code example
Example: using df.astype to select categorical data and numerical data
df.satisfaction.astype("category",
ordered=True,
categories=ordered_satisfaction
)
df.satisfaction.astype("category",
ordered=True,
categories=ordered_satisfaction
)