You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "jonded94 (via GitHub)" <gi...@apache.org> on 2025/04/02 09:09:53 UTC
Re: [I] [Python] Instantiating arrays with type List[ExtensionType] is not supported [arrow]
jonded94 commented on issue #46007:
URL: https://github.com/apache/arrow/issues/46007#issuecomment-2771926128
Doing some weird hacks allows you to do instantiate a `ListArray[FixedShapeTensorArray]` for example though:
```
indxes = [0] + list(itertools.accumulate(map(len, value)))
pa.ListArray.from_arrays(
pa.array(indxes),
pa.FixedShapeTensorArray.from_numpy_ndarray(
np.array(list(itertools.chain.from_iterable(value)))
),
)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org