参考/API#

astropy.table公司包裹#

功能#

hstack(tables[, join_type, uniq_col_name, ...])

沿列(水平)堆叠表格。

join(left, right[, keys, join_type, ...])

在指定的键上执行左表与右表的联接。

represent_mixins_as_columns(tbl[, ...])

表示输入表 tbl 仅使用 ColumnMaskedColumn 物体。

setdiff(table1, table2[, keys])

取一组表行的差异。

unique(input_table[, keys, silent, keep])

返回表的唯一行。

vstack(tables[, join_type, metadata_conflicts])

垂直堆叠表格(沿行)。

dstack(tables[, join_type, metadata_conflicts])

沿深度堆叠表中的列。

join_skycoord(distance[, distance_func])

使用距离匹配在SkyCoord列上加入的帮助函数。

join_distance(distance[, kdtree_args, ...])

使用距离匹配连接表列的助手函数。

Classes#

BST(data, row_index[, unique])

纯Python中的一种基本的二进制搜索树,用作索引引擎。

Column([data, name, dtype, shape, length, ...])

定义要在表对象中使用的数据列。

ColumnGroups(parent_column[, indices, keys])

ColumnInfo([bound])

用于存储诸如名称、描述、格式等元信息的容器。

Conf \()

的配置参数 astropy.table .

JSViewer([use_local_files, display_length])

提供表的交互式HTML导出。

MaskedColumn([data, name, mask, fill_value, ...])

定义在表对象中使用的屏蔽数据列。

NdarrayMixin(obj, *args, **kwargs)

Mixin column类允许在表中存储任意numpy ndarray。

QTable([data, masked, names, dtype, meta, ...])

表示异构数据表的类。

Row(table, index)

表示表对象的一行的类。

SCEngine(data, row_index[, unique])

快速的基于树的索引实现,使用 sortedcontainers 包裹。

SerializedColumn 

用于序列化混合列的DICT的子类。

SortedArray(data, row_index[, unique])

使用numpy数组列表实现已排序的数组容器。

StringTruncateWarning 

警告类,用于为字符串列分配由于基(numpy)字符串长度太短而被截断的值。

Table([data, masked, names, dtype, meta, ...])

表示异构数据表的类。

TableAttribute([default])

为表子类定义自定义属性的描述符。

TableColumns([cols])

一组列的OrderedDict子类。

TableFormatter \()

TableGroups(parent_table[, indices, keys])

TableMergeError 

TableReplaceWarning 

方法替换表列的情况下的警告类 Table.__setitem__ 语法,例如t ['a'] =val。

PprintIncludeExclude([default])

维护控制打印输出表列可见性的元组。

类继承图#

Inheritance diagram of astropy.table.bst.BST, astropy.table.column.Column, astropy.table.groups.ColumnGroups, astropy.table.column.ColumnInfo, astropy.table.Conf, astropy.table.jsviewer.JSViewer, astropy.table.column.MaskedColumn, astropy.table.ndarray_mixin.NdarrayMixin, astropy.table.table.QTable, astropy.table.row.Row, astropy.table.soco.SCEngine, astropy.table.serialize.SerializedColumn, astropy.table.sorted_array.SortedArray, astropy.table.column.StringTruncateWarning, astropy.table.table.Table, astropy.table.table.TableAttribute, astropy.table.table.TableColumns, astropy.table.pprint.TableFormatter, astropy.table.groups.TableGroups, astropy.table.np_utils.TableMergeError, astropy.table.table.TableReplaceWarning, astropy.table.table.PprintIncludeExclude