-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[Python] Table.from_struct_array function #33500
Description
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.
Note: This issue was originally created as ARROW-18330. Please see the migration documentation for further details.