https://www.iamchaichai.com/2023/01/30/develop-customer-retention-analytics-in-python/