I\'m working on the following code for performing Random Forest Classification on train and test sets;
from sklearn.ensemble import RandomForestClassifier fr
I had this error. The cause was a single entry in my data that had a space. This caused it to see it as an extra row. Make sure all spacing is consistent throughout all the data.