def get_column_types(content):

    # number of rows to check for content
    test_count = min(len(content), 5)

    # number of columns
    col_count = len(content[0])

    all_types = [[] for i in range(col_count)]

    for r_ind in range(test_count):
        for col_ind, col in enumerate(content[r_ind]):
            if isint(col):
                all_types[col_ind].append('IntType')
            elif isfloat(col):
                all_types[col_ind].append('FloatType')
            else:
                all_types[col_ind].append('StringType')

    # find if conversions are consistent across rows
    column_types = [pick_type(types) for types in all_types]
    return column_types
Combines games from multiple days into a single list.
dataset/ETHPy150Open learntextvis/textkit/textkit/coerce.py/get_column_types--crossover with--dataset/ETHPy150Open zachpanz88/mlbgame/mlbgame/__init__.py/combine_games