Skip to content

Instantly share code, notes, and snippets.

@amandaiglesiasmoreno
Last active Nov 22, 2021
Embed
What would you like to do?
# 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