Skip to content

Instantly share code, notes, and snippets.

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 McSpooder/b0861849a2cb7203c46ce64d7b4a6111 to your computer and use it in GitHub Desktop.
Save McSpooder/b0861849a2cb7203c46ce64d7b4a6111 to your computer and use it in GitHub Desktop.
X_Y split
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