Skip to content

iloc should support accessing single values #175

Closed
@risenW

Description

@risenW

If i run the following:

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], columns: [0]})
sub_df.print()

I should get the correct result not the following error:

TypeError: t.columns[0].includes is not a function

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions