Skip to content

[Python] Convert multidimensional arrays into FixedShapeTensorArrays automatically in pyarrow.array #35647

Description

@alanhdu

Describe the enhancement requested

Now that there is a canonical fixed_shape_tensor type, I was wondering whether there'd be any appetite for making pyarrow.array automatically convert numpy arrays with >1 dimension into FixedShapeTensorArrays.

You can do this manually by using pa.FixedShapeTensorArray.from_numpy_ndarray, but it seems more convenient for pyarrow.array to automatically support this.

If there's appetite for this, I think I'd be able to contribute a patch.

Component(s)

Python

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions