In this session, we implemented some simple Python logics on the churn data:
- First, we implemented a bubble sort algorithm to sort the customers in decreasing order of their lifetime values (LTVs).
- Then we created another function to tag the customers into high- and low-LTV groups.
- Finally, we added all the functions created in this session in a single class, from where we can access all of them directly.