You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating some new macros for use with the @linq macro. I can create the macros, but I can't get @linq to recognize them. Simple example below. Any ideas?
using DataFrames
using DataFramesMeta
# simple renaming of where macromacroselectrows(d, args...)
esc(DataFramesMeta.where_helper(d, args...))
endfunctionlinq(::DataFramesMeta.SymbolParameter{:selectrows}, d, args...)
DataFramesMeta.where_helper(d, args...)
end
df =DataFrame(x =1:3, y = [2, 1, 2]);
@linq df |>@selectrows(:x.>1) # OK@linq df |>selectrows(:x.>1) # Error
The error is:
ERROR: MethodError: no method matching isless(::Int64, ::Symbol)
Closest candidates are:isless(::Symbol, ::Symbol) at strings/basic.jl:136isless(::DataArrays.NAtype, ::Any) at /home/jock/.julia/v0.6/DataArrays/src/operators.jl:383isless(::Real, ::AbstractFloat) at operators.jl:97...
Stacktrace:
[1] (::##97#98)(::Symbol) at ./<missing>:0
[2] broadcast(::Function, ::Symbol) at ./broadcast.jl:434
The text was updated successfully, but these errors were encountered:
Hi there,
I am creating some new macros for use with the
@linq
macro. I can create the macros, but I can't get@linq
to recognize them. Simple example below. Any ideas?The error is:
The text was updated successfully, but these errors were encountered: