How can I download the table (the CSV file) that I logged in a run it programmatically on my computer using python?
Hi @ortal, thanks for writing in! There are several ways to download the table by accessing the artifact containing it and downloading it or downloading the specific file. Tables are logged as json files but you can then convert to csv with a code like:
import json import csv def convert_json_to_csv(json_file_path, csv_file_path): with open(json_file_path, 'r') as json_file: data = json.load(json_file) columns = data['columns'] data_rows = data['data'] with open(csv_file_path, 'w', newline='') as csv_file: writer = csv.writer(csv_file) writer.writerow(columns) writer.writerows(data_rows)
Hi @ortal, following up here! Did you have the chance to test my suggestion above and did it work for you? Please let me know if you’d need further assistance here!
Hi Ortal, since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.