def hazard_to_survival(interval):
    """Convert hazards (interval probabilities of event) into survival curve

    Args:
        interval ([pd.DataFrame, np.array]): hazards (interval probabilities of event)
        usually result of predict or  result from _get_point_probs_from_survival

    Returns:
        [pd.DataFrame, np.array]: survival curve
    """
    return (1 - interval).cumprod(axis=1)