Quick and dirty script for taking a pivot table with two column headings generated as a report and parse into something useful.
Sample data is from the US Census https://data.census.gov/table/ACSDP1Y2010.DP05?q=DP05&g=010XX00US$0400000&y=2010&tp=false .