Pandas dataset into an array for modelling in Scikit-Learn
Pandas DataFrames are very good at acting like Numpy arrays when they need to. If in doubt, you can always use the values attribute to get a Numpy representation (df.values will give you a Numpy array of the values in DataFrame df.
Can we run scikit-learn models on Pandas DataFrames or do we need to convert DataFrames into NumPy arrays?