StringIndex returns the string value of cell at given column, row index for columns that have 1-dimensional tensors. Returns "" if column is not a 1-dimensional tensor or row not valid.
(column, row int)
| 473 | // for columns that have 1-dimensional tensors. |
| 474 | // Returns "" if column is not a 1-dimensional tensor or row not valid. |
| 475 | func (dt *Table) StringIndex(column, row int) string { |
| 476 | if !dt.IsValidRow(row) { |
| 477 | return "" |
| 478 | } |
| 479 | ct := dt.Columns[column] |
| 480 | if ct.NumDims() != 1 { |
| 481 | return "" |
| 482 | } |
| 483 | return ct.String1D(row) |
| 484 | } |
| 485 | |
| 486 | // NOTE: String conflicts with [fmt.Stringer], so we have to use StringValue |
| 487 |
no test coverage detected