TableColumns#

class astropy.table.TableColumns(cols={})[源代码]#

基类:OrderedDict

一组列的OrderedDict子类。

这个类增强了项访问,以便通过名称或索引方便地访问列,包括切片访问。它还处理列的重命名。

初始化参数 cols 可以是 Column 对象或任何对初始化Python dict有效的结构。这包括dict、(key、val)元组列表或 [钥匙,瓦尔] 列表等。

参数:
cols : dictlist ,元组;可选派生:词典,派生:列表,元组;可选

列对象作为可以初始化dict的数据结构(见上文)

方法总结

isinstance \(CLS)

返回列的列表,这些列是指定类的实例。

not_isinstance \(CLS)

返回不是指定类实例的列的列表。

setdefault(key, default)

update(*args, **kwargs)

方法文件

isinstance(cls)[源代码]#

返回列的列表,这些列是指定类的实例。

参数:
cls : class or tuple 其中类或

列类(包括mixin)或列类的元组。

返回:
col_list : listColumnPython:列的列表

列对象的列表,这些对象是给定类的实例。

not_isinstance(cls)[源代码]#

返回不是指定类实例的列的列表。

参数:
cls : class or tuple 其中类或

列类(包括mixin)或列类的元组。

返回:
col_list : listColumnPython:列的列表

不是给定类实例的列对象的列表。

setdefault(key, default)[源代码]#

自 6.1 版本弃用: The t.columns.setdefault() function is deprecated and may be removed in a future version. Use t.setdefault() instead.

update(*args, **kwargs)[源代码]#

自 6.1 版本弃用: The t.columns.update() function is deprecated and may be removed in a future version. Use t.update() instead.