import pandas as pd # Import data from a CSV file data = pd.read_csv('input_data.csv') print("Imported Data:") print(data.head()) # Export data to a new CSV file data.to_csv('exported_data.csv', index=False) print("\nData exported to 'exported_data.csv'")
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter