if the data types of the involved columns are compatible, a schema of this type should be used
function dfswapcols(df, col1, col2)
df[:,col1], df[:,col2] = df[:,col2], df[:,col1]
rename!(df, names(df)[col1]=>names(df)[col2], names(df)[col2]=>names(df)[col1])
end