Skip to content

[Python] Allow creating extension arrays via pa.array constructor #44406

@rok

Description

@rok

Describe the enhancement requested

As noted in #44070 (comment) - it would be nice if we could shorten:

storage = pa.array(data, type=storage_type)
extension_type = pa.some_extension_type(storage_type)
array = pa.ExtensionArray.from_storage(extension_type, storage)

to:

extension_type = pa.some_extension_type(storage_type)
array = pa.array(data, extension_type)

Component(s)

Python

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions