How can I dynamically refer to a column name (i.e., a Symbol) within a @where
macro ?
using DataFrames, DataFramesMeta
df = DataFrame(x=Int64[1,2,3,4,5])
name = "x"
nameS = Symbol(name)
df2 = @where(df, :x .>= 2) # ok
df2 = @where(df, nameS .>= 2) # MethodError