LIFELINES is a pure Python library for survival analysis, a statistical field focused on modeling time until an event occurs. It can be used for traditional cases like medical survival time, but also for business and product questions such as churn, subscription length, equipment failure, and customer retention. The library includes estimators such as Kaplan-Meier, Nelson-Aalen, and regression-based survival models. It is designed to be accessible to Python users and works well with common scientific computing workflows. Built-in plotting methods and datasets help users explore survival curves and compare groups visually. It is a practical tool for analysts, researchers, and data scientists who need event-time modeling without leaving Python.
Features
- Pure Python survival analysis
- Kaplan-Meier estimator support
- Nelson-Aalen estimator support
- Regression survival models
- Built-in plotting utilities
- Example datasets and documentation