Hi everyone,
Is it possible to build a cohort analysis chart using plotly library?
Thank you for your quick response,
I went through the link you provide but I didn’t find something related to cohort chart
I have a CSV file and I want to build a Cohort analysis chart
import plotly.express as px
data=[[1, 25, 30, 50, 1], [20, 1, 60, 80, 30], [30, 60, 1, 5, 20]]
fig = px.imshow(data,
labels=dict(x="Day of Week", y="Time of Day", color="Productivity"),
x=['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'],
y=['Morning', 'Afternoon', 'Evening']
)
fig.update_xaxes(side="top")
fig.show()
1 Like