Last active
July 19, 2022 04:51
-
-
Save moezali1/2624c9a5eaf78d9a7ffa1b97195a4812 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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