SetFloat sets the float64 value of cell at given column (by name), row index for columns that have 1-dimensional tensors.
(column string, row int, val float64)
| 582 | // SetFloat sets the float64 value of cell at given column (by name), row index |
| 583 | // for columns that have 1-dimensional tensors. |
| 584 | func (dt *Table) SetFloat(column string, row int, val float64) bool { |
| 585 | if !dt.IsValidRow(row) { |
| 586 | return false |
| 587 | } |
| 588 | ct := dt.ColumnByName(column) |
| 589 | if ct == nil { |
| 590 | return false |
| 591 | } |
| 592 | if ct.NumDims() != 1 { |
| 593 | return false |
| 594 | } |
| 595 | ct.SetFloat1D(row, val) |
| 596 | return true |
| 597 | } |
| 598 | |
| 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. |