DataFramesMeta.jl
DataFramesMeta.jl copied to clipboard
Good hack for avoid compilation when no columns submitted
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
Need an optimization for Returns here.