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 ofColumn
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
isinstance
(cls)Return a list of columns which are instances of the specified classes. keys
()not_isinstance
(cls)Return a list of columns which are not instances of the specified classes. values
()Methods Documentation
-
isinstance
(cls)[source] [edit on github]¶ Return a list of columns which are instances of the specified classes.
Parameters: - cls : class or tuple of classes
Column class (including mixin) or tuple of Column classes.
Returns: - col_list : list of Columns
List of Column objects which are instances of given classes.
-
keys
() → a set-like object providing a view on D's keys[source] [edit on github]¶
-
not_isinstance
(cls)[source] [edit on github]¶ Return a list of columns which are not instances of the specified classes.
Parameters: - cls : class or tuple of classes
Column class (including mixin) or tuple of Column classes.
Returns: - col_list : list of Columns
List of Column objects which are not instances of given classes.
-
values
() → an object providing a view on D's values[source] [edit on github]¶