I have two dataframes that look like this:
df_1 = pd.DataFrame({ \'A\' : [1.0, 2.0, 3.0, 4.0], \'B\' : [100, 200, 300, 400], \'C\' : [2, 3, 4, 5]
You can use:
set(df_2.columns.values) - set(df_1.columns.values)
which returns a set containing column labels of columns in df_2 but not in df_1.
df_2
df_1