pandas concat 2 columns into one code example Example: merge two columns name in one header pandas df['A'] = df[a_cols].apply(' '.join, axis=1)