| 348 | } |
| 349 | |
| 350 | Result<std::shared_ptr<Tensor>> Table::ToTensor(bool null_to_nan, bool row_major, |
| 351 | MemoryPool* pool) const { |
| 352 | std::shared_ptr<Tensor> tensor; |
| 353 | ARROW_RETURN_NOT_OK( |
| 354 | internal::TableToTensor(*this, null_to_nan, row_major, pool, &tensor)); |
| 355 | return tensor; |
| 356 | } |
| 357 | |
| 358 | std::vector<std::string> Table::ColumnNames() const { |
| 359 | std::vector<std::string> names(num_columns()); |