def flatten_lists_to_csv(data):
    """Converts the passed in data to csv.

    Assuming:
        x = [
            ["v1", 98, 23],
            ["v2", 0.25, 0.56],
        ]
    then flatten_lists_to_csv(data) will return the following string:

    v1,v2
    98,0.25
    23,0.56

    :param list data: A list of lists holding a flat view of the data
    to convert to csv.

    :return: A string representing the csv view of the passed in data.
    """
    rows = []
    i = 0
    while True:
        try:
            row = []
            for j in range(len(data)):
                row.append(str(data[j][i]))
            rows.append(",".join(row))
            i += 1
        except IndexError:
            break
    return "\n".join(rows)