parse dates file of dates and probability of choosing

def get_dates_file(path):
    """ parse dates file of dates and probability of choosing"""
    with open(path) as f:
        dates = f.readlines()
    return [(convert_time_string(date_string.split(" ")[0]), float(date_string.split(" ")[1]))
            for date_string in dates]