Python-graphviz: A New Way of Looking at the Data of Things
At my new job (and some of my personal projects) I found myself looking at a ton of text. Upon reviewing all this data, which could be anything from json, csv or just plain text, my eyes tend to bleed. It can quite quickly become confusion as to which data I’ve looked at or how that data relates to everything else.
With all of that being said, it was time to find a new way of looking at things. This is where python-graphviz has come in handy. The first thing I needed to do (after spending some time googling and then finally learning about graphviz anyway) was to find a way to normalize my data.
In an attempt to keep things nice and simple we are just going to look at some basic data in a csv.
This is a VERY simple example of what you can do with python-graphviz. I would also like to mention that I used hashlib to help make sure multiple nodes of the same thing did not get created which wasn’t really needed in this example, but may prove useful later on with larger datasets.