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

Method loc

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

* Access a group of rows and columns 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 * @param columns Array of column indexes * * Allowed inputs are: * * - A

({ rows, columns }: {
        rows?: Array<string | number | boolean> | Series,
        columns?: Array<string>
    })

Source from the content-addressed store, hash-verified

413 * ```
414 */
415 loc({ rows, columns }: {
416 rows?: Array<string | number | boolean> | Series,
417 columns?: Array<string>
418 }): DataFrame {
419 return _loc({ ndFrame: this, rows, columns }) as DataFrame
420 }
421
422 /**
423 * Prints DataFrame to console as a formatted grid of row and columns.

Callers 1

selectDtypesMethod · 0.95

Calls 1

_locFunction · 0.90

Tested by

no test coverage detected