MCPcopy Index your code
hub / github.com/javascriptdata/danfojs / mode

Method mode

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

* Returns the modal value of elements in Series * @example * ``` * const sf = new Series([1, 2, 3, 4, 4, 5, 6]); * console.log(sf.mode()); * //output [ 4 ] * ``` * * @example * ``` * const sf = new Series([1, 2, 3, 4, 4, 5, 5, 6]); *

()

Source from the content-addressed store, hash-verified

528 *
529 */
530 mode() {
531 const values = this.$checkAndCleanValues(this.values as ArrayType1D, "mode")
532 return mode(values);
533 }
534
535 /**
536 * Returns the minimum value in a Series

Callers

nothing calls this directly

Calls 1

$checkAndCleanValuesMethod · 0.95

Tested by

no test coverage detected