I have created a dataset using tablib.
out_dict
is a dictionary file
headers = out_dict.keys()
data = tablib.Dataset(out_dict.values(), headers=headers)
How can I save it as a csv file in the same format?
I have created a dataset using tablib.
out_dict
is a dictionary file
headers = out_dict.keys()
data = tablib.Dataset(out_dict.values(), headers=headers)
How can I save it as a csv file in the same format?
Copyright © 2021 Jogjafile Inc.
According to the
Exporting Data
tablib documentation, a dataset can be exported in a number of different formats. To export to CSV format use:Or directly to a file using: