Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 600 Bytes

dataframe.shape.md

File metadata and controls

38 lines (29 loc) · 600 Bytes
description
Returns an Array representing the dimensionality of the DataFrame.

DataFrame.shape

danfo.DataFrame.shape

Examples

{% tabs %} {% tab title="Node" %}

const dfd = require("danfojs-node")

let data = {"A": [-20.1, 30, 47.3, -20],
            "B": [34, -4, 5, 6], 
            "C": [20, -20, 30, -40]}
let df = new dfd.DataFrame(data, {index: ["a", "b", "c", "d"]})

console.log(df.shape)

{% endtab %}

{% tab title="Browser" %}

{% endtab %} {% endtabs %}

{% tabs %} {% tab title="Output" %}

[4,3]

{% endtab %} {% endtabs %}