def append_columns(classdict, shape=()):
    heavy = common.heavy
    for (itype, type_) in enumerate(sorted(six.iterkeys(type_info))):
        if not heavy and type_ in heavy_types:
            continue  # skip heavy type in non-heavy mode
        colpos = itype + 1
        colname = 'c_%s' % type_
        if type_ == 'enum':
            base = tables.Atom.from_sctype(sctype_from_type[type_])
            col = tables.EnumCol(enum, enum(0), base, shape=shape, pos=colpos)
        else:
            sctype = sctype_from_type[type_]
            dtype = numpy.dtype((sctype, shape))
            col = tables.Col.from_dtype(dtype, pos=colpos)
        classdict[colname] = col
    ncols = colpos
    return ncols
Calls :meth:`instance.delete` as long as ``dry_run`` is not set.
dataset/ETHPy150Open PyTables/PyTables/tables/tests/test_queries.py/append_columns--crossover with--dataset/ETHPy150Open django-import-export/django-import-export/import_export/resources.py/Resource.delete_instance