

def readData(filename):
    data_d = {
        
    }
    with open(filename) as f:
        reader = csv.DictReader(f, delimiter=',', quotechar='"')
        for (i, row) in enumerate(reader):
            clean_row = [(k, preProcess(v)) for (k, v) in row.iteritems()]
            data_d[i] = dedupe.core.frozendict(clean_row)
    return (data_d, reader.fieldnames)

dataset/ETHPy150Open datamade/dedupe/tests/exampleIO.py readData/original