import csv


def load_data(path, delimeter=','):
    """
    Reads the data from a CSV file
    Skips lines starting with #
    
    Arguments:
    path - path of the file to read
    (optional) delimeter - delimeter between columns
    Returns: Data in form of a 2D array
    """

    data = []
    with open(path, newline='') as csvfile:
        reader = csv.reader(csvfile, delimiter=delimeter, quotechar='|')
        for row in reader:
            if len(row) > 0 and not row[0].startswith('#'):
                data.append([float(r) for r in row])
    return data