Series.var

Calculate the variance of a Series

danfo.Series.var() [source]

Parameter: None

Return: Number

Example

Node
Node
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.var())
Output
Output
968.25