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

fromCSV fails with uncaught TypeError on CSV with headers only #308

Open
harveylee opened this issue Dec 8, 2022 · 1 comment
Open

fromCSV fails with uncaught TypeError on CSV with headers only #308

harveylee opened this issue Dec 8, 2022 · 1 comment

Comments

@harveylee
Copy link

fromCSV('y,x0,x1')

throws

Uncaught TypeError: Cannot read properties of undefined (reading 'length')
    at fromTextRows (/home/yevs/fleetseer/fleetseer/node_modules/.pnpm/[email protected]/node_modules/arquero/dist/arquero.node.js:7347:17)

However,

table([['y', []], ['x0', []], ['x1', []])

succeeds in creating a table with the correct column names, albeit no rows.

@kitsunde
Copy link

This is a bit of an issue when loading results from an athena query, since athena will produce an empty file with the headers and there's no way of knowing without parsing the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants