Skip to content

[Python] Support constructing dictionary array directly through pa.array() #26024

@asfimport

Description

@asfimport
pa.array(["some", "string"], type=pa.dictionary(pa.int8(), pa.string)))

raises

ArrowNotImplementedError: Sequence converter for type dictionary<values=string, indices=int8, ordered=0> not implemented

It would be a much more comfortable way than

pa.DictionaryArray.from_arrays(indices, dictionary)

And possibly more efficient as well thanks to the adaptive dictionary builders.

Reporter: Krisztian Szucs / @kszucs
Assignee: Krisztian Szucs / @kszucs

Related issues:

Note: This issue was originally created as ARROW-9999. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions