pandas and NumPy 3 · Grouping and combining
Save to a CSV file
Write the DataFrame to a file without the row index.
df.to_csv("out.csv", index=False)
Official pandas and NumPy 3 documentation
More grouping and combining commands
- Group and aggregate
- Create a pivot table
- Join two DataFrames
- Stack DataFrames
- Compute a moving average
- Aggregate by time period
All grouping and combining commands · pandas and NumPy 3 cheatsheet