I want to concatenate multiple dataframes into one dataframe. The manner I want the concatenation to happen is illustrated in the following example:
Input tables:
A B C D
0 x p 2 4
1 y q 3 5
A B E F
0 x p 6 8
1 y q 9 10
Output table:
A B C D E F
0 x p 2 4 6 8
1 y q 3 5 9 10
I want to know if this can be done using the pandas.concat command. I know this can be done through the pd.merge command.
Thanks.