Double unfortunately, I can't swap the columns in the source data -- the file's generated as CSV by another application.
awk -v FS=, -v OFS=, -- '{print $2, $1 }' < xy.csv > yx.csv

Peter