Powered By GitBook
Series.nunique
Returns the number of unique values in a series
danfo.Series.nunique() [source]
Parameters: None
Returns: int
Example
Node
1
const dfd = require("danfojs-node")
2
3
let data1 = [1, 2, 3, 4, 5, 6, 7, 8, 1, 1, 22, 8, 5, 5, 5]
4
let sf = new dfd.Series(data1)
5
6
console.log(sf.nunique())
Copied!
Ouptut
1
9
Copied!
Last modified 1yr ago
Copy link