Powered By GitBook
Series.mean
Obtain the mean of a series
danfo.Series.mean() [source]
Parameter: None
Return: Number
Example
Node
1
const dfd = require("danfojs-node")
2
3
let data1 = [20, 30, 1, 2, 4, 57, 89, 0, 4]
4
let sf1 = new dfd.Series(data1)
5
6
console.log(sf1.mean())
Copied!
Output
1
23.000001907348633
Copied!
Last modified 1yr ago
Copy link