pandas dataframe combine different as new dataframe code example
Example 1: combining 2 dataframes pandas
df_3 = pd.concat([df_1, df_2])
Example 2: merge two columns name in one header pandas
df['A'] = df[a_cols].apply(' '.join, axis=1)
df_3 = pd.concat([df_1, df_2])
df['A'] = df[a_cols].apply(' '.join, axis=1)