Series.index

Obtain the index of a Series

danfo.Series.index

Returns: Array

Example

const dfd = require("danfojs-node")

let data1 = [30.21091, 40.190901, 3.564, 5.0212]
let sf1 = new dfd.Series(data1)

console.log(sf1.index)
[ 0, 1, 2, 3 ]

Last updated