Skip to content

[Python] Add function to "flatten" structs within tables #17880

@asfimport

Description

@asfimport

See discussion in #17866

When a user has a struct column, it may be more efficient to flatten the struct into multiple columns of the form struct_name.field_name for each field in the struct. Then when you call to_pandas, Python dictionaries do not have to be created, and the conversion will be much more efficient

Reporter: Wes McKinney / @wesm
Assignee: Antoine Pitrou / @pitrou

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-1886. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions