import csv


def getdata(fn, colnum, delim=";"):
    """
    Read a column of data from a CSV file.

    Arguments:
        fn: Path of the file to read.
        colnum: Index of the column to read.
        delim: Delimiter to use (defaults to ';').

    Returs:
        A list of extracted data.
    """
    data = []
    with open(fn) as df:
        for num, row in enumerate(csv.reader(df, delimiter=delim)):
            if len(row) > colnum:
                data.append((num, row[colnum]))
    return data