Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sf.apply not working with dates #574

Open
Decezaris opened this issue May 6, 2023 · 0 comments
Open

sf.apply not working with dates #574

Decezaris opened this issue May 6, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Decezaris
Copy link

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

@Decezaris Decezaris changed the title sf.apply not working with dates sf.apply not working with dates May 6, 2023
@risenW risenW added the bug Something isn't working label Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants