I currently have some code which reads in a csv and does some manipulation and I want to then output my new dataframe in a specific order by column.
Currently I have column headers from the input:
Country, Region, Currency, Capital
And i would like to write these out as:
Currency, Region, Currency, Capital
Is there a way to do this within the write function?
I tried reading in the columns as I wanted them output using select but that just wrote them in the same order they were in the input.
thanks in advance!