DataFrame.iloc
Purely integer-location based indexing for selection by position.
Parameters
Type
Description
Default
Examples
Indexing specific rows by index and return all columns
const dfd = require("danfojs-node")
let data = { "Name": ["Apples", "Mango", "Banana", "Pear"],
"Count": [21, 5, 30, 10],
"Price": [200, 300, 40, 250] }
let df = new dfd.DataFrame(data)
let sub_df = df.iloc({rows: [0,1,3]})
sub_df.print()Index by a slice of row and return all columns
Index by a slice of column and return all rows
Indexing both axis by the specified index
Indexing both axis by slices
More default slicing behavior
Last updated