You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Note - the file path that has been provided to createReadStream("Planets/kepler_data.csv") is realtive to the package.json file to run the program as `npm run kepler`.
7
+
// For running the program as `node index.js` in Planets folder, change the path accordingly to createReadStream('kepler_data.csv')
8
+
9
+
// to read file data in bytes
10
+
fs.createReadStream("Planets/kepler_data.csv")
11
+
// pipe the stream data with parse to get a json format
12
+
.pipe(
13
+
parse({
14
+
comment: "#",// specifying that the file containing lines with # will be considered as comments
15
+
columns: true,// to create json format rather than having it in the form of array
0 commit comments