datascience.tables.Table.values¶
- property Table.values¶
Return data in self as a numpy array.
If all columns are the same dtype, the resulting array will have this dtype. If there are >1 dtypes in columns, then the resulting array will have dtype object.
Example:
>>> tiles = Table().with_columns( ... 'letter', make_array('c', 'd'), ... 'count', make_array(2, 4), ... ) >>> tiles.values array([['c', 2], ['d', 4]], dtype=object) >>> t = Table().with_columns( ... 'col1', make_array(1, 2), ... 'col2', make_array(3, 4), ... ) >>> t.values array([[1, 3], [2, 4]])