Created
July 2, 2020 21:43
-
-
Save McSpooder/b0861849a2cb7203c46ce64d7b4a6111 to your computer and use it in GitHub Desktop.
X_Y split
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
def X_Y_df_split(in_df): | |
X_df = in_df.drop(columns=['fun', 'valuable', 'exciting', 'awesome', 'cool'], axis=1) | |
Y_df = in_df.drop(columns=['id', 'comment_text'], axis=1) | |
return (X_df, Y_df) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment