def generate_cohort_bounds(data, cohorts):
    """Generate cohort intervals given an input transition dataframe and the desired number of cohorts. The function finds the range of timestamps and divides it equally
    :param data: a pandas dataframe
    :param cohorts:  the number of cohorts
    :type cohorts: int
    :return: cohort_bounds
    :return: dt
    .. warning:: the Time column must be in float format
    """
    # Find the temporal range of observed event times
    t_min = data['Time'].min()
    t_max = data['Time'].max()

    # Divide the temporal range into equal intervals (dt)
    dt = (t_max - t_min) / cohorts
    # Capture the degenerate case that t_max = t_min
    if not dt > 0:
        dt = 1.0
    cohort_bounds = [t_min + dt * i for i in range(0, cohorts + 1)]
    return dt, cohort_bounds