Concatenate in Python

From the Pandas cheat sheet ยท Combine Data ยท verified Aug 2026

Concatenate

Stack rows or align objects by columns.

python
all_rows = pd.concat([january, february], ignore_index=True)
๐Ÿ“Œ axis="index" stacks rows by default
๐Ÿ’ก ignore_index creates a fresh row index
๐Ÿ” keys records each object source
โš ๏ธ Column labels align and may create missing data
concatcombinealignment

Continue with Pandas

Save the full cheat sheet or work through every related task.

More Python tasks

Back to the full Pandas cheat sheet