I have three dataframes that I've created three different sets of dummy columns. Each dataframe has a slightly different set of dummy variables than the other two.
I am trying to combine something that looks like this -
set1 - (a, b, c, d, e, f)
set2 - (a, b, c, d, f, k)
set3 - (a, c, d, e, f, i, n)
desired set - (a, c, d, f)
Is there a way of doing this by comparing the column names as sets?