Skip to content

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

@harveylee

Description

@harveylee
fromCSV('y,x0,x1')

throws

Uncaught TypeError: Cannot read properties of undefined (reading 'length')
    at fromTextRows (/home/yevs/fleetseer/fleetseer/node_modules/.pnpm/arquero@5.1.0/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.

Metadata

Metadata

Assignees

No one assigned

    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