Vectorizing a Pandas dataframe for Scikit-Learn

Say I have a dataframe in Pandas like the following: > my_dataframe col1 col2 A foo B bar C something A foo A bar B foo where rows represent instances, and colu...