You’d have a couple of options here. Since you’re working in a dataframe, there’s a function in Pandas called get_dummies 5 that will one-hot encode for you.
There’s also a function in Keras called to_categorical 5, though that seems like it’s limited to taking integer values as your classes. Those integers could be the indexes for a list of class name strings if you want to convert back to meaningful names.
Here are some links to the documentation pages for those functions.
https://pandas.pydata.org/docs/reference/api/pandas.get_dummies.html 5
https://www.tensorflow.org/api_docs/python/tf/keras/utils/to_categorical 5