lifelines is a complete survival analysis library, written in pure Python. What benefits does lifelines have?

easy installation

internal plotting methods

simple and intuitive API

handles right, left and interval censored data

contains the most popular parametric, semi-parametric and non-parametric models

Installation¶ pip install lifelines or conda install -c conda-forge lifelines

Source code and issue tracker¶ Available on Github, CamDavidsonPilon/lifelines. Please report bugs, issues and feature extensions there. We also have Gitter channel available to discuss survival analysis and lifelines: