def write_disagg_fuel_ts(path_to_txt, data):
    """Write out disaggregated fuel

    Arguments
    ----------
    path_to_txt : str
        Path to txt file
    data : dict
        Data to write out
    """
    file = open(path_to_txt, 'w')
    file.write('{}, {}, {}'.format('region', 'fueltypes', 'fuel') + '\n')
    for region, fuels in data.items():
        for fueltype, fuel in enumerate(fuels):
            file.write('{}, {}, {}'.format(str.strip(region), str(int(
                fueltype)), str(float(fuel)) + '\n'))
    file.close()
    return
