Skip to content

using propertynames on GroupedDataFrame #3443

@matthieugomez

Description

@matthieugomez

The documentation discusses the fact that one can use either names and propertynames to get the name of variables in DataFrame, where the first function returns a vector of strings and the second one returns a vector symbols. However, for a GroupedDataFrame, propertynames returns (:parent, :cols, :groups, :idx, :starts, :ends, :ngroups, :keymap, :lazy_lock). I found this confusing and to solve this, I think it would be good to define

Base.propertynames(df::GroupedDataFrame) = propertynames(parent(df))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions