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

groupby derived columns #392

Open
nilshg opened this issue Mar 22, 2024 · 0 comments
Open

groupby derived columns #392

nilshg opened this issue Mar 22, 2024 · 0 comments

Comments

@nilshg
Copy link

nilshg commented Mar 22, 2024

Related to #383 it would be nice to be able to group by the result of functions applied to columns. The most common case for me is:

df.year = year.(df.date)
groupby(df, :year)

It would be nice to just do

@groupby df :date => year

(Syntax TBD of course)

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