Created
June 11, 2021 05:22
-
-
Save tommydangerous/07b049dddee5bba1ad1c6e246e7a05a2 to your computer and use it in GitHub Desktop.
download_and_split_data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sklearn.model_selection import train_test_split | |
| import pandas as pd | |
| df = pd.read_csv('/content/titanic_survival.csv') | |
| label_feature_name = 'Survived' | |
| X = df.drop(columns=[label_feature_name]) | |
| y = df[label_feature_name] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment