I am trying to export a list that is like that
[{'Header1': 'Ahmed', 'Notes': 11.96},
{'Header1': 'Salah', 'Notes': 16.13},
{'Header1': 'Reda', 'Notes': 20.83}]
I could use csv module like that
with open('Output.csv', 'w', encoding='utf8', newline='') as f:
fc = csv.DictWriter(f, fieldnames=results[0].keys(),)
fc.writeheader()
fc.writerows(results)
and that worked fine How can I use pandas for that purpose?