You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "jorisvandenbossche (via GitHub)" <gi...@apache.org> on 2024/07/31 12:02:51 UTC
Re: [I] [Python] `pa.Table.from_pylist` support list of tuples? [arrow]
jorisvandenbossche commented on issue #43435:
URL: https://github.com/apache/arrow/issues/43435#issuecomment-2260359792
@alanhdu thanks for the issue. I think this is indeed something that `from_pylist` could support, and a good feature request.
In that case, the `schema` argument should probably be required (or it could be relaxed to just a list of column `names`).
The current implementation lives here:
https://github.com/apache/arrow/blob/62fd98704dbe2684018707a7b135751fa7bfbe5a/python/pyarrow/table.pxi#L6160-L6197
(it's in a cython file, but essentially it's just pure python in this case)
I think it should be relatively straightforward to edit that to also support tuples (or to have a variant that supports tuples).
--
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