datascience.tables.Table.labels

property Table.labels

Return a tuple of column labels.

Returns:

tuple of labels

Example:

>>> t = Table().with_columns({
...     'letter': ['a', 'b', 'c', 'z'],
...     'count':  [  9,   3,   3,   1],
...     'points': [  1,   2,   2,  10],
... })
>>> t.labels
('letter', 'count', 'points')