-
Notifications
You must be signed in to change notification settings - Fork 370
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
Comments
I understand you have an issue about the inconsistency between The current design is based on the following reasoning:
However, for the future we could discuss changing it provided that we find some meaningful value that would be returned by |
Maybe an alternative would be to have a better suggestion than |
you can use |
Yes, that would improve things. That being said, I think this syntax is quite complicated to remember (and, tbh, that the name |
This is not a function introduced by DataFrames.jl. It is a Base function that returns names of properties of an object. And column names as symbols are names of properties of In general the current design is to use strings as column names as people found it easier to work with. The use of We could add |
Great — I think suggesting |
The documentation discusses the fact that one can use either
names
andpropertynames
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 defineThe text was updated successfully, but these errors were encountered: