I want to check if my DataFrame contains all of the columns I specified. Of course I can do it with the code below, but I have the feeling it should be possible in one line.
using DataFrames
bools = Array{Bool}([])
df = DataFrame(A=[1,2], B=[3,4], C=[5,6])
for name in ["A", "B"]
push!(bools, name ∈ names(df))
end
false ∉ bools