Skip to content

Instantly share code, notes, and snippets.

@sgsg704
Created August 24, 2021 06:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgsg704/136cd65f2bda019de2be3990aa214c46 to your computer and use it in GitHub Desktop.
Save sgsg704/136cd65f2bda019de2be3990aa214c46 to your computer and use it in GitHub Desktop.
X = features.drop(["RainTomorrow"], axis=1)
y = features["RainTomorrow"]
# Splitting test and training sets
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size = 0.2, random_state = 42)
X.shape
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment