Skip to content

Instantly share code, notes, and snippets.

@amandaiglesiasmoreno
Last active November 22, 2021 21:23
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 amandaiglesiasmoreno/9a82edec6ecf57830cf6d1c3d7616be8 to your computer and use it in GitHub Desktop.
Save amandaiglesiasmoreno/9a82edec6ecf57830cf6d1c3d7616be8 to your computer and use it in GitHub Desktop.
# select independent variables
X = df_telco_transformed.drop(columns='Churn')
# select dependent variables
y = df_telco_transformed.loc[:, 'Churn']
# prove that the variables were selected correctly
print(X.columns)
# prove that the variables were selected correctly
print(y.name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment