Note

This is an old version of the documentation. See http://docs.astropy.org/en/stable for the latest version.

TableColumns

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.

Parameters:

cols : dict, list, tuple; optional

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

Methods Summary

keys()
values()

Methods Documentation

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