formatpartiesds function

Format the parties data set