Code: Select all
X_cleaned = X.dropna()
y_cleaned = y[X_cleaned.index]
X_training, X_test, y_training, y_test = train_test_split(X_cleaned, y_cleaned, test_size=0.15, random_state=0)
Code: Select all
X_cleaned = X.dropna()
y_cleaned = y[X_cleaned.index]
X_training, X_test, y_training, y_test = train_test_split(X_cleaned, y_cleaned, test_size=0.15, random_state=0)