We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2fbd64f + a104380 commit 6f944aaCopy full SHA for 6f944aa
1 file changed
danfojs-node/src/io/reader.js
@@ -19,7 +19,7 @@ export const read_csv = async (source, configs = {}) => {
19
let { start, end } = configs;
20
if (!(source.startsWith("file://") || source.startsWith("http"))) {
21
//probabily a relative path, append file:// to it
22
- source = `file://${process.cwd()}/${source}`;
+ source = source.startsWith("/") ? `file://${source}` : `file://${process.cwd()}/${source}`;
23
}
24
25
let tfdata = [];
0 commit comments