Created
April 18, 2021 18:09
-
-
Save AyishaR/fe0c88f6ad19860ec143a83e9e47a7a4 to your computer and use it in GitHub Desktop.
This file contains 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
# Input attributes (every column except the last) | |
X = df[df.columns.tolist()[:-1]] | |
# Output attribute - one-hot encoded | |
y = pd.get_dummies(df[64]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment