logo

Navigating Politics: Data Formatting

image
Author: Ian Dawes
Created: 26 July, 2012
Updated: 13 October, 2022
2 min read
Source: Siniroluyoruz.biz

Data Formatting:

Once you have found the data that you are looking for, downloading from a compatible source for the data formatting and analysis being performed can be challenging. This will save you a lot of trouble. Yes PDFs are convenient, but a raw file format like .xls (MS excel) or .csv (comma separated values) will save you a lot of trouble when trying to sort statistics and generating presentations during the data formatting process.

The Shapefile (.shp) format for cartographic design are great sources for already formatted datasets. Each shapefile consists of five base files, one of which is a database (.dbf) file. You can download any shapefile, open it up, to reveal a list of files. The .dbf will run in any database application like Microsoft Excel or Access. Having a .dbf file makes the method by which you complete your data formatting and how long you need to spend arranging cells into columns and rows go quicker.

Probably the most tedious task once you have the information is data formatting the records of information for analytic use. If the records in your data table are circularly referenced, a few hours of reconstituting the original method of organization is in order. Each attribute of every data record should be in its own attribute column. For example, sorting a column in a spreadsheet that contains both a candidate’s name and party affiliation can lead to troubles; there should be an attribute column each for , , and another for .

For larger datasets, learning a little bit of query and selection language (SQL, Visual Basic, Python) would be beneficial. Hiring a data formatting professional temporarily that already knows MS sql is well worth it for reformatting or creating subsets of information from the original larger dataset.

One last thing on this note:

Often you have multiple sets of data and need them all together. The best way to merge datasets is based on a common field using a databasing tool application like Microsoft SQL Studio. Each set of data should have a common attribute like “name” that you can use to append one set to the other.

Next to come: Visualizing Data

Latest articles

Andrew Yang
Andrew Yang: Democrats Have Only Themselves to Blame
Former presidential candidate and Forward Party Founder Andrew Yang says that if Democratic leaders are looking for someone to blame for their 2024 loss, they need to take a hard look in the mirror....
11 November, 2024
-
2 min read
ballot
Independent Voters Have Yet to Fully Flex Their Influence in Presidential Elections
Exit polling from Edison Research shows that self-identified independents made up a larger share of the 2024 vote -- but with independent ID reaching a majority of the electorate, this bloc has yet to fully make its presence felt in presidential elections....
07 November, 2024
-
2 min read
Trump
Do Presidential Elections Really Matter?
In October 2012, I published an op-ed in the Huffington Post asking, “Do Presidential Elections Really Matter?” In May 2023 I wrote a similar column in The Fulcrum asking the question once again....
07 November, 2024
-
4 min read