def coerce_types(content):
    '''
    Convert types in csv-like content.
    The idea is that when translating to and
    from csv, everything is converted to strings. So, we need to undo that
    conversion for things like counts.
    '''
    if len(content) == 0:
        return content

    column_types = get_column_types(content)

    coerced_content = []
    for row in content:
        c_row = []
        for col_ind, col in enumerate(row):
            try:
                col = CONVERTERS[column_types[col_ind]](col)
            except __HOLE__:
                col = col
            c_row.append(col)
        coerced_content.append(c_row)
    return coerced_content
dataset/ETHPy150Open learntextvis/textkit/textkit/coerce.py/coerce_types