Suppose I have a training data as below:
Age:12 Height:150 Weight:100 Gender:M
Age:15 Height:145 Weight:80 Gender:F
Age:17 Height:147 Weight:110 Gender:F
Age:11 Height:144 Weight:130 Gender:M
After I train my data and get the model, if I need to pass one test observation for prediction, do I need to send data with column names as below?
Age: 13 Height:142 Weight :90
I some cases I have seen people sending test data in an array without the column names. I am not sure how algorithms work.
Note: I am using python scikit-learn and my training data is a dataFrame. So I am not sure whether my test data should also be in dataFrame format