Model Hubs & Serving

lifelines

Survival analysis library in pure Python

Status
Generally available
Last checked
Checked · Oct 12, 2026
License
Open source
Pricing
Free tier · from $0

What it is

Lifelines is a comprehensive survival analysis library written entirely in Python. It provides tools for estimating and plotting survival functions, hazard rates, and more.

Lifelines stands out with its comprehensive set of tools and models specifically tailored for survival analysis in pure Python.

When it fits — and when it doesn’t

A good fit for

  • Research teams needing comprehensive survival analysis tools written in Python

  • Academics working on time-to-event data who prefer open-source solutions

  • Business analysts looking to predict customer churn using survival models

Look elsewhere if

  • Teams requiring real-time analysis as lifelines is designed for batch processing

  • Developers needing a web-based interface, as it's primarily a Python library

Known weaknesses

Each one links to the public issue, changelog or docs page it came from, where we have one.

  1. 01

    Limited support for advanced survival analysis techniques

    Does not include complex models like joint frailty models or multi-state models out-of-the-box

  2. 02

    Poor documentation for certain features and methods

    Some advanced functionalities lack detailed examples or explanations in the official documentation

  3. 03

    Performance issues with large datasets

    Estimation of survival functions can be slow and memory-intensive when dealing with very large datasets

  4. 04

    Limited integration options with other data science tools

    Does not natively integrate well with popular Python libraries such as pandas or scikit-learn for seamless workflow

What it does well

  • Estimation of survival and hazard functions

  • Cox proportional hazards model

  • Aalen additive model

  • Kaplan-Meier estimator

  • Nelson-Aalen estimator

Pricing

Free tier
YesOpen source — free to use
Paid from
$0
Model
Flat rate
Enterprise plan
No

Pricing not independently confirmed — check the vendor’s page.

Performance benchmarks

How Fast Is It?

Set up lifelines

Setup steps, common gotchas and what to check after 30 days.

Open the setup guide →
Get the badge

A small badge for lifelines’s README or site: its name, “Tracked on AI Navigator”, and the availability status and check month from this page. It updates as the catalog does.

lifelines — tracked on AI Navigator

Markdown

[![lifelines — tracked on AI Navigator](https://navigateaitools.com/badge/lifelines.svg)](https://navigateaitools.com/explorer/tool/lifelines)

HTML

<a href="https://navigateaitools.com/explorer/tool/lifelines"><img src="https://navigateaitools.com/badge/lifelines.svg" alt="lifelines — tracked on AI Navigator" height="58"></a>