Skip to content

Can't create a dataframe from a horizontal array? #424

Open
@joshuakoh1

Description

@joshuakoh1

const arr = [200, 400, 600, 800, 1000, 1100, 1200, 1300, 1400, 1500, 1600, 1650, 1700, 1750, 1800, 1850, 1900, 1950, 2000, 2050, 2100, 2150, 2200, 2250, 2300, 2350, 2400, 2450, 2500, 2550, 2575, 2600, 2625, 2650, 2675, 2700, 2725, 2750, 2775, 2800, 2825, 2850, 2875, 2900, 2925, 2950, 2975, 3000, 3025, 3050, 3075, 3100, 3125, 3150, 3175, 3200, 3225, 3250, 3275, 3300, 3325, 3340, 3350, 3360, 3370, 3375, 3380, 3390, 3400, 3410, 3420, 3425, 3430, 3440, 3450, 3460, 3470, 3475, 3480, 3490, 3500, 3510, 3520, 3525, 3530, 3540, 3550, 3560, 3570, 3575, 3580, 3590, 3600, 3610, 3620, 3625, 3630, 3640, 3650, 3660, …]

const df = new dfd.DataFrame(arr, {columns: ['A']})

Uncaught Error: ParamError: Column names length mismatch. You provided a column of length 1 but Ndframe columns has lenght of undefined

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions