1>>> df = pd.DataFrame({'name': ['Raphael', 'Donatello'],
2... 'mask': ['red', 'purple'],
3... 'weapon': ['sai', 'bo staff']})
4>>> df.to_csv(index=False)
5
1df.to_csv(r'Path where you want to store the exported CSV file\File Name.csv', index = False)