df1:
Column 1 Column 2 Column 3
Row 1 1 2 3
Row 2 4 5 6
Row 3 7 8 9
df2:
Column 4 Column 5
Row 1 10 11
Row 2 12 13
Row 3 14 15
df3 after concatenation:
Column 1 Column 2 Column 3 Column 4 Column 5
Row 1 1 2 3 10 11
Row 2 4 5 6 12 13
Row 3 7 8 9 14 15
Here, we are concatenating two DataFrames along the columns. So, the axis parameter in the pandas.concat() function is 1.








































0 Comments