I am trying to run some Machine learning algo on a dataset using scikit-learn. My dataset has some features which are like categories. Like one feature is A, wh
See https://pandas.pydata.org/pandas-docs/stable/generated/pandas.factorize.html
and see this question How to reformat categorical Pandas variables for Sci-kit Learn