JuliaData / JuliaData/DataFramesMeta.jl

Good hack for avoid compilation when no columns submitted

Open
#253 1 comment 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

julia> using DataFrames;

julia> struct A{T} <: Function
           x::T
       end;

julia> (a::A)() = a.x;

julia> df = DataFrame(a = [1], b = [2]);

julia> transform(df, [] => (A(1)) => :c)
1×3 DataFrame
 Row │ a      b      c     
     │ Int64  Int64  Int64 
─────┼─────────────────────
   1 │     1      2      1

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

Reproduce the Julia REPL example using DataFramesMeta.jl's transform call and inspect how the empty column selection is handled. Determine the intended behavior for avoiding compilation when no columns are submitted, then confirm the result with a focused regression test for this example.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.