lifelines

Survival analysis library in pure Python

EstablishedOpen SourceLow lock-in

Pricing

See website

Flat rate

Adoption

Stable

License

Open Source

Data freshness

Overview

What is lifelines?

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

Key differentiator

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

Capability profile

Strength Radar

Estimation of su…Cox proportional…Aalen additive m…Kaplan-Meier est…Nelson-Aalen est…

Honest assessment

Strengths & Weaknesses

↑ Strengths

Estimation of survival and hazard functions

Cox proportional hazards model

Aalen additive model

Kaplan-Meier estimator

Nelson-Aalen estimator

Fit analysis

Who is it for?

✓ Best 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

✕ Not a fit for

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

Cost structure

Pricing

Free Tier

None

Starts at

See website

Model

Flat rate

Enterprise

None

Performance benchmarks

How Fast Is It?

Ecosystem

Relationships

Next step

Get Started with lifelines

Step-by-step setup guide with code examples and common gotchas.

View Setup Guide →