Skip to content

Issue with .unique and passing the column as string #395

@gustaferiksson

Description

@gustaferiksson

On nodejs-polars 0.22.2

There is an issue with using .unique and passing all the options as separate arguments

This throws error: Given napi value is not an array:

df.unique(true, "column", "first")

where as passing the column in an array does not and works as expected:

df.unique(true, ["column"], "first")

for reference both these work when passing all the options in an object:

df.unique({ keep: "first", subset: "column", maintainOrder: true })
df.unique({ keep: "first", subset: ["column"], maintainOrder: true })

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