This chapter covers the core features and capabilities of Cohort Tool.
Follow this guide to get Cohort Tool up and running in your environment.
# Monthly cohort retention
python src/cohort_tool.py --events examples/sample_cohort_data.json --cohort-by month
# Weekly cohorts with HTML heatmap
python src/cohort_tool.py --events data.json --cohort-by week --html heatmap.html
# Export results
python src/cohort_tool.py --events data.json --output retention.json --periods 12================================================================================
COHORT RETENTION (MONTH)
Total users: 450
================================================================================
Cohort Size P0 P1 P2 P3 P4
--------------------------------------------------------
2026-01 80 100.0% 72.5% 58.8% 45.0% 38.8%
2026-02 95 100.0% 68.4% 52.6% 41.1%
2026-03 110 100.0% 70.9% 55.5%
2026-04 85 100.0% 65.9%
2026-05 80 100.0%
--------------------------------------------------------
Average 100.0% 69.4% 55.6% 43.0% 38.8%
Get the full Cohort Tool and unlock everything.
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Downloadable source code, configuration files, and working examples from every chapter.
Free updates for life. Every new chapter, tool, and improvement included.