Skip to content

[Enh]: nw.Expr.struct.unnest #3476

@benrutter

Description

@benrutter

We would like to learn about your use case. For example, if this feature is needed to adopt Narwhals in an open source project, could you please enter the link to it below?

Support unnest functionality for struct columns. Should unpack elements of struct column into individual columns.

Please describe the purpose of the new feature or describe the problem to solve.

Designed to make working with complex struct data easier (probably most likely to happen in case of json ingestion)

Suggest a solution if possible.

Implementation of function using native functions for dataframes.

If you have tried alternatives, please describe them below.

No response

Additional information that may help us understand your needs.

Useful info / links in case anyone is looking to pick this up:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions