Row

class astropy.table.table.Row(table, index) [edit on github][source]

Bases: object

A class to represent one row of a Table object.

A Row object is returned when a Table object is indexed with an integer or when iterating over a table:

>>> table = Table([(1, 2), (3, 4)], names=('a', 'b'))
>>> row = table[1]
>>> row
<Row 1 of table
 values=(2, 4)
 dtype=[('a', '<i8'), ('b', '<i8')]>
>>> row['a']
2
>>> row[1]
4

Attributes Summary

dtype
meta
table
colnames
data
index
columns

Attributes Documentation

dtype[source]
meta[source]
table[source]
colnames[source]
data[source]
index[source]
columns[source]

Page Contents