I have a variable list with column names and a dataframe . I would like to remove columns from the dataframes when the column names match the variable list.
columns -> "a","c"
dataframe->
a b c d
0 0 1 1
1 1 1 1
Ouput->
b d
0 1
1 1
Please help me out with the solution.