Skip to content

Should name in a groupby default to something more informative than :groupby? #1029

@felixcremer

Description

@felixcremer

From a metadata perspective I think it would make sense to have a system that tries to capture what is the name of the function or data that was used to do the groupby rather than the generic :groupby default that we have at the moment.

We could dispatch this by setting name(f::Function) = Symbol(f) and then use the name(dimfuncs) as the fallback.

The only problem I see with this is, that I am not sure where the name of a DimGroupbyArray is used and whether this would be detrimental for the usability.

It is currently not possible to set the name from the outer level of dispatch on groupby on a single DimArray.
This is on the #946 branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions