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


pip install lifelines


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 discussion channel available to discuss survival analysis and lifelines:

Citing lifelines

The following link will bring you to a page where you can find the latest citation for lifelines: Citation for lifelines