Skip to content

How could I filter a df using a date column? #560

Open
@thais-molica

Description

@thais-molica

Hi, everyone. I'm new to the data manipulation and I'm learning with danfojs.
I have a dataframe, like this:

const data = [{id: 000, timestamp: "2015-01-01T02:00:00.000Z"}]
const df = new DataFrame(data)

I would like to filter this dataframe using this column timestamp. I tried something like:

df.query([df['timestamp'] > "2015-01-01T02:00:00.000Z" && df['timestamp'] < "2015-06-01T02:00:00.000Z" ])

But it only returned the first row when it should've returned more data. I haven't found nothing like this in the documentarion. Could anybody help me, please?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions