How to split a dataset (csv) into training and test data in python programming language if there are no dependent variables in it
The project i am currently working on is machine learning based and the dataset does not contain any dependent data. The following code works only if the dataset contains a dependent data-
from sklearn.model_selection import train_test_split xTrain, xTest, yTrain, yTest = train_test_split(x, y, test_size = 0.2, random_state = 0)
I expect the split to happen without any 'y' variable, Is it possible?