Skip to content

Instantly share code, notes, and snippets.

@moezali1
Last active July 19, 2022 04:51
Embed
What would you like to do?
import plotly.express as px
fig = px.scatter(x=data['tenure'], y=data['TotalCharges'],
color = data['Churn'], template = 'presentation',
opacity = 0.5, facet_col = data['Contract'],
title = 'Customer Churn by Tenure, Charges, and Contract Type',
labels = {'x' : 'Customer Tenure', 'y' : 'Total Charges $'})
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment