DataFrame.print
Pretty prints default (10) number of rows in a DataFrame or Series to the console
danfo.DataFrame.print()
Examples
const dfd = require("danfojs-node")
let data = { "Abs": [20.2, 30, 47.3] ,
"Count": [34, 4, 5] ,
"country code": ["NG", "FR", "GH"] }
let df = new dfd.DataFrame(data)
df.print()╔═══╤═══════════════════╤═══════════════════╤═══════════════════╗
║ │ Abs │ Count │ country code ║
╟───┼───────────────────┼───────────────────┼───────────────────╢
║ 0 │ 20.2 │ 34 │ NG ║
╟───┼───────────────────┼───────────────────┼───────────────────╢
║ 1 │ 30 │ 4 │ FR ║
╟───┼───────────────────┼───────────────────┼───────────────────╢
║ 2 │ 47.3 │ 5 │ GH ║
╚═══╧═══════════════════╧═══════════════════╧═══════════════════╝Using JavaScript default console.log to display a DataFrame will return the Object instead unless you manually cast it to a String
Last updated
Was this helpful?