JuliaData / JuliaData/DataFramesMeta.jl

`groupby` derived columns

Open
#392 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
496
Forks
56
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading related issue #383 and the existing @groupby/groupby behavior. The issue names no implementation file or test; done means agreeing on syntax and behavior for grouping by a function applied to a column, then covering that behavior with tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.