Powered By GitBook
Series.index
Obtain the index of a Series
danfo.Series.index [source]
Returns: Array
Example
Node
1
const dfd = require("danfojs-node")
2
3
let data1 = [30.21091, 40.190901, 3.564, 5.0212]
4
let sf1 = new dfd.Series(data1)
5
6
console.log(sf1.index)
Copied!
Output
1
[ 0, 1, 2, 3 ]
Copied!
Last modified 1yr ago
Copy link