Series.mode

Returns the mode of elements in a series

danfo.Series.mode()

Parameter: None

Return: Number

Example

const dfd = require("danfojs-node")

let data1 = [20, 30, 1, 2, 4, 57, 89, 0, 4]
let sf1 = new dfd.Series(data1)

console.log(sf1.mode())
[ 4 ]

Last updated