I would like to split my data into two random sets. I've done the first part:
ind = np.random.choice(df.shape[0], size=[int(df.shape[0]*0.7)], replace=False)
X_train = df.iloc[ind]
Now I would like to select all index' not in ind to create my test set. Please can you tell me how to do this?
I thought it would be
X_test = df.iloc[-ind]
but apparently it isn't