Powered By GitBook
Series.shape
Obtain the shape of a Series
danfo.Series.shape [source]
Parameters: None
Returns: Array [int, int]
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.shape)
Copied!
Output
1
[ 4, 1 ]
Copied!
Last modified 1yr ago
Copy link