Command
pd.concatExplanation
pd.concat() is used to combine multiple DataFrames either row-wise or column-wise.
Examples
Concatenate row-wise
pd.concat([df1, df2])Concatenate column-wise
pd.concat([df1, df2], axis=1)pd.concatpd.concat() is used to combine multiple DataFrames either row-wise or column-wise.
Concatenate row-wise
pd.concat([df1, df2])Concatenate column-wise
pd.concat([df1, df2], axis=1)