I have two lists of tables: old references and new references, I would like to modify this function to save both list in one csv file to get this
old_references= ["POT-94000-FT-42"]
new_references = ["POT-94000-FT-43"]
headers = ["old_references", "new_references"]
I know how to do it in pandas, unfortunately I don't have access to pandas on the computer. thanks for your advice.
def exportCsv(liste):
date = str(datetime.datetime.now().strftime("%d-%m-%Y %H-%M-%S"))
csv_file = open(os.path.join(sortie, 'increment_reference_{}_'.format(date) + '.csv'), 'w')
writer = csv.writer(csv_file)
writer.writerows([liste])
thanks for your advices
