Consider
using DataFrames
df=DataFrame(a=1:3, b=1:3, c=1:3)
and suppose I want to turn Between(:b, :c) into column indices, which should return [2, 3]?
I can select those columns extract the names and then call columnindex but that's not very elegant.