Skip to content

Group by nested column doesn't work #1329

@shcheklein

Description

@shcheklein

This code breaks. Can we be related to flattening of the model, but we still need to handle this properly.

    df = (
        dc
            .read_dataset("analyzer.bmi")
            .group_by(count=func.count(), partition_by="person.z")
            .to_pandas()
    )

Workaround:

    df = (
        dc
            .read_dataset("analyzer.bmi")
            .mutate(z=C("person.z"))
            .group_by(count=func.count(), partition_by="z")
            .to_pandas()
    )

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions