Is a D2C fashion brand building a loyal customer base, or renting revenue with discounts?
The data came with no loyalty score, no churn label and no timestamps, so every segment, metric and recommendation is engineered from explicit, traceable rules.
Python audits the signal and engineers features, MySQL CTEs and window functions answer five business questions, and a four-panel founder dashboard shows the result.
Two competing loyalty definitions were tested. loyal_B (no discount and rating ≥ 4) is primary because loyal_A is still ~44% discount-driven.
Discount and promo flags were identical, every subscriber was discounted, and only men were ever discounted, so gender-sensitive findings were re-tested within men only.