FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

`sf.apply` not working with dates · Issue #574 · javascriptdata/danfojs · GitHub

sf.apply not working with dates #574

Description

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


    Back | FazBrowse Home | New Git URL