Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using propertynames on GroupedDataFrame #3443

Open
matthieugomez opened this issue Jun 19, 2024 · 0 comments
Open

using propertynames on GroupedDataFrame #3443

matthieugomez opened this issue Jun 19, 2024 · 0 comments

Comments

@matthieugomez
Copy link
Contributor

matthieugomez commented Jun 19, 2024

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))
@matthieugomez matthieugomez changed the title propertynames on GroupedDataFrame should return a vector of symbol using propertynames on GroupedDataFrame Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant