NOTE: String conflicts with [fmt.Stringer], so we have to use StringValue StringValue returns the string value of cell at given column (by name), row index for columns that have 1-dimensional tensors. Returns "" if column is not a 1-dimensional tensor or row not valid.
(column string, row int)
| 489 | // for columns that have 1-dimensional tensors. |
| 490 | // Returns "" if column is not a 1-dimensional tensor or row not valid. |
| 491 | func (dt *Table) StringValue(column string, row int) string { |
| 492 | if !dt.IsValidRow(row) { |
| 493 | return "" |
| 494 | } |
| 495 | ct := dt.ColumnByName(column) |
| 496 | if ct == nil { |
| 497 | return "" |
| 498 | } |
| 499 | if ct.NumDims() != 1 { |
| 500 | return "" |
| 501 | } |
| 502 | return ct.String1D(row) |
| 503 | } |
| 504 | |
| 505 | // TensorIndex returns the tensor SubSpace for given column, row index |
| 506 | // for columns that have higher-dimensional tensors so each row is |
nothing calls this directly
no test coverage detected