Row

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

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

colnames
columns
data
dtype
index
meta
table

Attributes Documentation

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

Page Contents