[Solved] Convert several YAML files to CSV
[ad_1] I would make use of a Python YAML library to help with doing that. This could be installed using: pip install pyyaml The files you have given could then be converted to CSV as follows: import csv import yaml fieldnames = [‘Name’, ‘Author’, ‘Written’, ‘About’, ‘Body’] with open(‘output.csv’, ‘w’, newline=””) as f_output: csv_output = … Read more