Lincoln-Hannah
Lincoln-Hannah
A macro similar to @chain but treats any line that isn't another macro as being within an @rtransform @astable block. So what would currently be written as: @chain DataFrame( A...
``` @chain begin DataFrame(A=1, B=2) @rtransform :X = (;:A , :B) end ``` Produces :X = (##1262 = 1, ##1263 = 2) Can it instead produce? :X = (A=1, B=2)
Using `f(; a, b, varargs... )` function `f` can be called with any number of arguments, provided the list includes `a` and `b`. Could something similar be done for @with_kw...
Would it be possible to add a feature to allow unpacking with optional default values? ``` struct Foo a b c end p = Foo(10, 20,30) @unpack { a=1, b,...
``` using Dictionaries, Parameters, NamedTupleTools, Lazy # 1- Compounding 2 dictionaries. # d1, d2 joined on values(d1)=keys(d2). Resulting Dictionary maps keys(d1) to values(d2) compound(d1::Dictionary,d2::Dictionary) = @>> d1 filter(∈(keys(d2))) map(y->d2[y]) #...
Apply an @rtransform block to a restricted set of rows. Fill other rows with existing value or `missing` for new columns. ``` @chain begin DataFrame( A = 1:4, B=[1,1,2,2] )...
Would it be possible, within a @by block, to make the grouped by columns available as single values rather then vectors? In the below, I'd like to create a column...
Currently `wrapdims` fills missing cells with some very large number. Example below. Could these be replaced by 'missing' or some specified value. ``` df = DataFrame( x=[1,1,2], y=[1,2,1], data=[10,11,12]) wrapdims(df,...
what about a function like: `getindices!(d::Dictionary, i::Vector{Symbol}) = filter!( ∈(getindices( d, i )), d ) ` This implementation only works for unique Dictionary values but it demonstrates the desired functionality....
CSV.write will convert most datatypes to strings, similar to using x -> "$x" For example it will print Symbols, Enums and Structs. Could XLSX.writetable be expanded in a similar way...