Skip to content

No Error Thrown If File Path Is Invalid For df.readCSV? #456

Description

@guekling

Describe the bug
When an invalid filepath is passed into df.readCSV, no errors are thrown and the request is never resolved. Are we supposed to check for validity of filepath ourselves before passing it into the function?

To Reproduce
Use the following code:

import * as dfd from "danfojs-node";

dfd.readCSV("invalid-filepath.csv")
  .then((df) => {
    // some code
  })
  .catch((error) => {
    console.log(error)
  })

Expected behavior
Should throw an error.

Additional context
Using danfojs-node v1.1.1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions