How to play with .cat.codes and get_dummies
You can convert object dtype to category using astype(&quot;Category&quot;) and then do label encoding on it using .cat.codes but it's better to use sklearn.preprocessing.LabelEncoder for it.
For basic analysis you should look into seaborn