Skip to content

Instantly share code, notes, and snippets.

@srang992
Created May 25, 2022 17:08
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 srang992/cde573e67cf4775523d31c51d29dcd13 to your computer and use it in GitHub Desktop.
Save srang992/cde573e67cf4775523d31c51d29dcd13 to your computer and use it in GitHub Desktop.
# selecting the necessary columns from the dataframe
query = """SELECT complains, charge_amount, seconds_of_use,
frequency_of_use, frequency_of_sms, age_group, customer_value, churn
FROM customer_churn"""
tel_data = pd.read_sql(query, conn)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment