cyberosa
commited on
Commit
·
5f3c579
1
Parent(s):
3cc81bb
adding cohort graph prototype
Browse files
app.py
CHANGED
@@ -404,7 +404,6 @@ with demo:
|
|
404 |
)
|
405 |
with gr.TabItem("🪝 Retention metrics (WIP)"):
|
406 |
with gr.Row():
|
407 |
-
# wow retention
|
408 |
gr.Markdown("# Wow retention by trader type")
|
409 |
with gr.Row():
|
410 |
wow_retention = calculate_wow_retention_by_type(retention_df)
|
@@ -412,8 +411,12 @@ with demo:
|
|
412 |
wow_retention=wow_retention
|
413 |
)
|
414 |
with gr.Row():
|
415 |
-
# cohort retention
|
416 |
gr.Markdown("# Cohort retention")
|
|
|
|
|
|
|
|
|
|
|
417 |
|
418 |
with gr.TabItem("⚙️ Active traders"):
|
419 |
with gr.Row():
|
|
|
404 |
)
|
405 |
with gr.TabItem("🪝 Retention metrics (WIP)"):
|
406 |
with gr.Row():
|
|
|
407 |
gr.Markdown("# Wow retention by trader type")
|
408 |
with gr.Row():
|
409 |
wow_retention = calculate_wow_retention_by_type(retention_df)
|
|
|
411 |
wow_retention=wow_retention
|
412 |
)
|
413 |
with gr.Row():
|
|
|
414 |
gr.Markdown("# Cohort retention")
|
415 |
+
with gr.Row():
|
416 |
+
cohort_retention = calculate_cohort_retention(df=retention_df)
|
417 |
+
cohort_retention_plot = plot_cohort_retention_heatmap(
|
418 |
+
retention_matrix=cohort_retention
|
419 |
+
)
|
420 |
|
421 |
with gr.TabItem("⚙️ Active traders"):
|
422 |
with gr.Row():
|