action when target variable is character/string
You can use the pandas factorize method for converting strings into numbers.  numpy.unique can also be used but will be comparatively slower.
I want to train a classifier, and my target variable has 300 unique values, and its type is character/string
Is there an automated process with pandas that can automatically trnsform each string into a number?
Thanks a lot