Skip to content

Instantly share code, notes, and snippets.

@BinarySpoon
Created February 25, 2021 12:03
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 BinarySpoon/d54735bf7f70fd8341393ec6d023a59f to your computer and use it in GitHub Desktop.
Save BinarySpoon/d54735bf7f70fd8341393ec6d023a59f to your computer and use it in GitHub Desktop.
# C.Setting Up Training Testing Data -->
y_train = train_data["Survived"]
y_test = result['Survived']
features = ["Pclass","Sex", "SibSp","Parch"]
X_train = pd.get_dummies(train_data[features])
X_test = pd.get_dummies(test_data[features])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment