* Access a single value for a row/column label pair. * Similar to loc, in that both provide label-based lookups. * Use at if you only need to get or set a single value in a DataFrame. * @param row Row index of the value to access. * @param column Column label of the valu
(row: string | number, column: string)
| 3402 | * ``` |
| 3403 | */ |
| 3404 | at(row: string | number, column: string): string | number | boolean | undefined { |
| 3405 | if (typeof column !== 'string') { |
| 3406 | throw new Error('ParamError: column index must be a string. Use .iat to get a row or column by index.') |
| 3407 | } |
| 3408 | return (this.values as ArrayType2D)[this.index.indexOf(row)][this.columns.indexOf(column)] |
| 3409 | } |
| 3410 | |
| 3411 | /** |
| 3412 | * Exposes functions for creating charts from a DataFrame. |