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

Method argMin

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

* Returns integer position of the smallest value in the Series. * @example * ``` * const sf = new Series([3, 1, 2]); * const sf2 = sf.argMin(); * console.log(sf2); * //output 1 * ``` *

()

Source from the content-addressed store, hash-verified

1669 *
1670 */
1671 argMin(): number {
1672 return this.tensor.argMin().arraySync() as number
1673 }
1674
1675 /**
1676 * Remove duplicate values from a Series

Callers

nothing calls this directly

Calls 1

argMinMethod · 0.65

Tested by

no test coverage detected