Skip to content

unnest #3116

@jariji

Description

@jariji

Extract a table-valued column into top-level columns. Code by Bogumił Kamiński on Slack.

unnest(df, col) = flatten(
    select(df, Not(col), col => ByRow(Tables.columntable) => AsTable), 
    names(df, Not(col))
)

This might come with its opposite, nest.

See also tidyr - nest and unnest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions