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

Method loc

src/danfojs-base/core/series.ts:143–145  ·  view source on GitHub ↗

* Access a group of rows by label(s) or a boolean array. * ``loc`` is primarily label based, but may also be used with a boolean array. * * @param rows Array of row indexes * * Allowed inputs are: * * - A single label, e.g. ``["5"]`` or ``['a']``, (note that ``5

(rows: Array<string | number | boolean>)

Source from the content-addressed store, hash-verified

141 * ```
142 */
143 loc(rows: Array<string | number | boolean>): Series {
144 return _loc({ ndFrame: this, rows }) as Series
145 }
146
147 /**
148 * Returns the first n values in a Series

Callers

nothing calls this directly

Calls 1

_locFunction · 0.90

Tested by

no test coverage detected