Skip to content

Instantly share code, notes, and snippets.

@gbushnell

gbushnell/RFM_plot.py Secret

Created Oct 15, 2020
Embed
What would you like to do?
RFM visualization
import plotly.express as px
fig = px.scatter_3d(rfm, x='R_days_since_last_invoice', y='F_count_invoices', z='M_total_invoiced', hover_name='client_description', color='M_total_invoiced')
fig.update_layout(scene = dict(
xaxis_title='Days Since Last Invoice',
yaxis_title='Count Total Invoices',
zaxis_title='Total Amount Invoiced'))
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment