You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "&res (Jira)" <ji...@apache.org> on 2022/11/15 12:51:00 UTC

[jira] [Created] (ARROW-18330) [Python] Table.from_struct_array function

&res created ARROW-18330:
----------------------------

             Summary: [Python] Table.from_struct_array function
                 Key: ARROW-18330
                 URL: https://issues.apache.org/jira/browse/ARROW-18330
             Project: Apache Arrow
          Issue Type: New Feature
          Components: Python
    Affects Versions: 10.0.0
            Reporter: &res


Following up on this stack overflow question: [https://stackoverflow.com/questions/74430949/table-from-nested-list-struct]

Would it be worth introducing a Table.from_struct_array function?

I'm actually not 100% sure it is needed or if it make sense.

For example, I'm not sure how it should behave when receiving a ChunkedArray (of type StructType) vs receiving a StructArray. In which case it's behaviour feels a bit overloaded and maybe it belongs to the `compute` package.

Also it's already possible to do such a thing (as illustrated in the SO question). Maybe it's more a problem of documentation. An example like this could be added to the cookbook.

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)