How did you actually make the X_train, X_valid, Y_train and Y_valid lists?

Original article was published on Artificial Intelligence on Medium


How did you actually make the X_train, X_valid, Y_train and Y_valid lists? Up to that point in the code we only made train and valid lists. Did you just separate both the train and valid dataframes into two?