NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #3117 most downloaded on PyPI
Survival analysis in Python, including Kaplan Meier, Nelson Aalen and regression
Last release 7 months ago
05 Mar 2026
Release timing varies
gaps range from 2 weeks to 1.3 years
Nearly every release is documented
notes for 60 of the last 60 stable releases
2 versions withdrawn
withdrawn after publishing
13 years old
175 releases · first in 2013
fix in internal normalization for CoxPHFitter predict methods.
CoxPHFitter predict methods.CoxPHFitter when normalize=True.normalize kwarg in CoxPHFitter. This was causing lots of confusion for users, and added code complexity. It's really nice to be able to remove it.CoxPHFitter.baseline_survival_CoxPHFitter.baseline_cumulative_hazard_ is always centered, to mimic R's basehaz API.predict_log_partial_hazards to CoxPHFitterOne column per quarter.
corrected bug that was returning the wrong baseline survival and hazard values in CoxPHFitter when normalize=True.
CoxPHFitter when normalize=True.normalize kwarg in CoxPHFitter. This was causing lots of confusion for users, and added code complexity. It's really nice to be able to remove it.CoxPHFitter.baseline_survival_CoxPHFitter.baseline_cumulative_hazard_ is always centered, to mimic R's basehaz API.predict_log_partial_hazards to CoxPHFitteradding plot_loglogs to KaplanMeierFitter
plot_loglogs to KaplanMeierFitterflat argument in plot methods. It was causing confusion. To replicate it, one can set ci_force_lines=True and show_censors=True.strata keyword argument to CoxPHFitter on initialization (ex: CoxPHFitter(strata=['v1', 'v2']). Why? Fitters initialized with strata can now be passed into k_fold_cross_validation, plus it makes unit testing strata fitters easier.strata in CoxPHFitter, access to strata specific baseline hazards and survival functions are available (previously it was a blended valie). Prediction also uses the specific baseline hazards/survivals.CoxPHFitter - should see at least a 10% speed improvement in fit.Nothing published for this version
Nothing published for this version
deprecates Pandas versions before 0.18.
deprecates Pandas versions before 0.18.
throw an error if no admissible pairs in the c-index calculation. Previously a NaN was returned.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
refactoring of qth_survival_times: it can now accept an iterable (or a scalar still) of probabilities in the q argument, and will return a DataFrame w
qth_survival_times: it can now accept an iterable (or a scalar still) of probabilities in the q argument, and will return a DataFrame with these as columns. If len(q)==1 and a single survival function is given, will return a scalar, not a DataFrame. Also some good speed improvements._label property that is passed in during the fit.alpha value is overwritten if a new alpha value is passed
in during the fit.conditional_time_to. This returns a DataFrame of the estimate:
med(S(t | T>s)) - s, human readable: the estimated time left of living, given an individual is aged s.include_likelihood to CoxPHFitter fit method to save the final log-likelihood value.Massive speed improvements to CoxPHFitter.
predict_percentile is available on CoxPHFitter and AalenAdditiveFitter. Given a percentile, p, this function returns the value t such that S(t | x) = p. It is a generalization of predict_median.k_fold_cross_validation that will accept different prediction methods (default is predict_median).predict_expectation function.datasets now contains functions for generating the respective datasets, ex: generate_waltons_dataset.Ability to specify default printing in statistical tests with the suppress_print keyword argument (default False).
suppress_print keyword argument (default False).regression_dataset in datasets.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →