josue-rojas / csv-yaml

a python script to convert csv to yaml files using PyYaml
23 stars 22 forks source link

Keep columns order in Yaml dump #12

Open mathiasleborgne opened 5 years ago

mathiasleborgne commented 5 years ago

I find it helpful to keep columns order. This code was written in python 2 and ported to python 3 using 2to3, so it should be easy to convert it back to python 2.

josue-rojas commented 5 years ago

Usually when I use yaml files the order doesn't matter. Like for GitHub pages the yaml is read like a json with keys. Maybe make it an option for those who might need it to be ordered.