Skip to content

sf.apply not working with dates #574

Open
@Decezaris

Description

@Decezaris

Using danfo-node, with node 16...

timestamp is a column created from new Date() instance

const sfHourly = df.column('timestamp').apply((date) => {
    const dt = new Date(date);
    dt.setMinutes(0);
    
    return dt;
});

This code throws the following message TypeError: arr.slice is not a function

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