I need to reshape a complicated table from rows of stacked election data to cleanly formatted columns containing all the information. I\'m having trouble automating this.