Unable to combine train and test data set in Big mart Sales problem



Test[,Item_Outlet_Sales := NA]
combi = rbind(Train, Test)

Getting error

Error in rbind(deparse.level, …) : numbers of columns of arguments do not match


Hi @mukul98m,

The number of columns are not the same in train and test files. It can be possible if you have performed preprocessing operations on the train set only. Please print the shape of you train and test files.

Follow the steps as mentioned in this course :