concat dataframes horizontally code example
Example: concat dataframe horizontally
DF1 = pd.DataFrame(columns=['col1', 'col2', 'col3'])
DF2 = pd.DataFrame(columns=['col2', 'col4', 'col5'])
pd.concat([DF1, DF2], axis = 1)
DF1 = pd.DataFrame(columns=['col1', 'col2', 'col3'])
DF2 = pd.DataFrame(columns=['col2', 'col4', 'col5'])
pd.concat([DF1, DF2], axis = 1)