Error with pandas dataframe (needs to be 1-dimensional)
It seems to me that this question is better off on stackoverflow.
Nevertheless, X_cal gets generated from X_train and X_train from valid. But this is an atleast 2-dimensional dataframe with new_host and sequence. Like the error says you should only input data that is 1-dimensional.