MCPcopy Create free account
hub / github.com/javascriptdata/danfojs / at

Method at

src/danfojs-base/core/frame.ts:3404–3409  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected