All_features_predictions is less than what we expected

Screen Link:

Can someone please tell me why the code doesn’t work when I am making a list with all of the features, instead of using the remove method?
Thanks in advance!

Apparently, the order in which the features are listed is important.

If you change to this:

features = ['accommodates', 'bedrooms', 'bathrooms', 'beds', 'minimum_nights', 'maximum_nights', 'number_of_reviews']

you get the correct mse.

1 Like

Thanks so much!
However, why does the order matter?


Thanks for marking as solution.

Per your question, I may have to do some experiments with the version of pandas and Python to observe the difference. I do not have any explanation top of my head.

1 Like