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

r

#1

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

Getting error

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


#2

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 :