SetStringIndex sets the string value of cell at given column, row index for columns that have 1-dimensional tensors. Returns true if set.
(column, row int, val string)
| 599 | // SetStringIndex sets the string value of cell at given column, row index |
| 600 | // for columns that have 1-dimensional tensors. Returns true if set. |
| 601 | func (dt *Table) SetStringIndex(column, row int, val string) bool { |
| 602 | if !dt.IsValidRow(row) { |
| 603 | return false |
| 604 | } |
| 605 | ct := dt.Columns[column] |
| 606 | if ct.NumDims() != 1 { |
| 607 | return false |
| 608 | } |
| 609 | ct.SetString1D(row, val) |
| 610 | return true |
| 611 | } |
| 612 | |
| 613 | // SetString sets the string value of cell at given column (by name), row index |
| 614 | // for columns that have 1-dimensional tensors. Returns true if set. |
no test coverage detected