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

Method count

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

* Return number of non-null elements in a Series * @example * ``` * const sf = new Series([1, 2, 3, 4, 5, 6]); * console.log(sf.count()); * //output 6 * ``` * * @example * ``` * const sf = new Series([1, 2, 3, 4, 5, 6, NaN]);

()

Source from the content-addressed store, hash-verified

600 * ```
601 */
602 count(): number {
603 const values = utils.removeMissingValuesFromArray(this.values as ArrayType1D)
604 return values.length
605 }
606
607 /**
608 * Return maximum of series and other.

Callers 1

describeMethod · 0.95

Calls 1

Tested by 1

describeMethod · 0.76