Pastebin
Paste #24157: No description
< previous paste - next paste>
Pasted by Anonymous Coward
data_file = os.path.join(data_dir, f"{current_time_fn}_performance-metrics_dev.csv")
with open(data_file, 'w', newline='') as csvfile:
fields = ["Timestamp", "Use case", "Action", "Duration"]
csv_writer = csv.writer(csvfile,
delimiter=';',
quotechar='"',
doublequote=True,
skipinitialspace=False,
lineterminator='\r\n',
quoting=csv.QUOTE_MINIMAL)
csv_writer.writerow(fields)
New Paste
Go to most recent paste.