This is an old version of the documentation. See for the latest version.


class astropy.table.TableColumns(cols={})[source] [edit on github]

Bases: collections.OrderedDict

OrderedDict subclass for a set of columns.

This class enhances item access to provide convenient access to columns by name or index, including slice access. It also handles renaming of columns.

The initialization argument cols can be a list of Column objects or any structure that is valid for initializing a Python dict. This includes a dict, list of (key, val) tuples or [key, val] lists, etc.


cols : dict, list, tuple; optional

Column objects as data structure that can init dict (see above)

Methods Summary


Methods Documentation

keys()[source] [edit on github]
values()[source] [edit on github]