def _get_conditional_probs_from_survival(surv):
    """
    Return conditional failure probabilities (for each time interval) from survival curve.
    P(T < t+1 | T > t): probability of failure up to time t+1 conditional on individual
    survival up to time t.

    Args:
        surv (pd.DataFrame): dataframe of survival estimates, as .predict() methods return

    Returns:
        pd.DataFrame: conditional failurer probability of event
            specifically at time bucket
    """

    conditional_preds = 1 - (surv / surv.shift(1, axis=1).fillna(1))
    conditional_preds = conditional_preds.fillna(0)

    return conditional_preds