I have a list of DataFrames [df1, df2, df3, df4, ...]
I want to do pd.concat, and only use the columns of a df it doesn't exist in previous dfs
dfs = [df1, df2, df3, df4, ...]
final_df = df1
for df in dfs[1:]:
final_df = pd.concat([final_df, df[df.columns.difference(final_df.columns)]])
Is there a better way than what I did above?