Browsing: pandas

A step-by-step guide to cohort retention analysis in Python: exporting orders from WooCommerce or any store, cleaning the CSV with pandas, assigning each customer to a first-order cohort, building retention and cumulative revenue per customer tables, masking months that have not happened yet, drawing a retention heatmap with matplotlib and reading the result without fooling yourself.