Python
Kaplan-Meier Survival Curve in Python with lifelines
Plot a Kaplan-Meier survival curve for subscriber churn with lifelines, handle users who haven't churned yet, compare plans with a log-rank test, add at-risk counts, and redraw the curve in plain Matplotlib.