Gmousse / dataframe-js

No Maintenance Intended
https://gmousse.gitbooks.io/dataframe-js/
MIT License
460 stars 38 forks source link

[FEATURE] Improve error messages #137

Open DanKaplanSES opened 1 year ago

DanKaplanSES commented 1 year ago

Is your feature request related to a problem? Please describe. I'm trying to use this library and df.show() reports an error that provides no troubleshooting information, so I don't know how to continue.

Describe the solution you'd like When df.show() errors, it should print useful information.

Describe alternatives you've considered TBH, using an alternative library.

Additional context Here is the code I have that's reporting an error:

import { DataFrame, Row } from 'dataframe-js';

const s = await DataFrame.fromDSV('s.csv', ',');
const f = s.show(10, true);
console.log('f', f);

And here is the output:

➜  $ node join.mjs
f | Error:... |
------------
|     at... |

I'm using node v19.6.0 on a Windows 10, Ubuntu WSL terminal.