pandas and NumPy 3 · Grouping and combining
Stack DataFrames
Append DataFrames with the same columns.
pd.concat([df1, df2], ignore_index=True)
Official pandas and NumPy 3 documentation
More grouping and combining commands
- Group and aggregate
- Create a pivot table
- Join two DataFrames
- Compute a moving average
- Aggregate by time period
- Save to a CSV file
All grouping and combining commands · pandas and NumPy 3 cheatsheet