How to check if a dataframe column exists

"col1" in names(df)

See Functions · DataFrames.jl

2 Likes