So You Want to Be a Software Developer? How to use open data with your code - Technical.ly Baltimore

Software Development

So You Want to Be a Software Developer? How to use open data with your code

Colin Starger shows how to use Jupyter and Python libraries to visualize your data, using Baltimore Neighborhood Indicators Alliance data on the deep inequities impacting the city's Black Butterfly.

Using code for data visualization.

(Gif by Technical.ly)

Following a data-driven look at the pandemic’s impact on the city, Baltimore Data Week 2021 offered a tutorial on illustrating the deep inequities impacting Baltimore’s Black Butterfly.

Colin Starger, founder and director of legal data and design at the University of Baltimore, gave a workshop on how to write the code that creates a visualization of the Baltimore Neighborhood Indicators Alliance’s (BNIA) data on these inequities.

The specific project Starger covered was Visualize_black_butterfly.ipynb, the code for which can All of the code can be found on Starger’s GitHub. He used Jupyter as his development environment and created a Jupyter Notebook which just allows a more feature-rich sharing of the coding files and documents. But if Jupyter isn’t your cup of tea as a work environment, note that it’s all coded in Python at the most basic level.

To get started on visualizing your data, all you need is the Jupyter Notebook and the BNIA API.CSV in Starger’s GitHub. The process from there is to plug in the variables, and then the code outputs a heat map of the data inputed using the libraries or prewritten code like GeoPandas and matplotlib.pyplot that turn the data into a geomap and heat map. These libraries all come neatly package in the GitHub code.

Advertisement

(Gif by Technical.ly)

Starger is going to use this data in a legal context for research he’s been doing about the criminal system in the United States.

“Not everything has the same disparity,” Starger said about what he’s been seeing as he created data visualizations of the Black Butterfly. “Not everything is all bad news and maybe you want to look in and visualize where something positive is happening. This basic stack would allow you to do that, and you can write additional code and work with your coder friends to do that as well.”

(Gif by Technical.ly)

Also, for a bonus lesson, here’s a quick trick in Word for Mac users to convert a huge block of text into a table; in this case it was the shortname and indicator key for the code in this GitHub project. You highlight the text, go to “Table,” then “Convert,” “Convert to table” — and voilà, nice clean table for API shortname indicators.

How to convert text to tables. (Gif by Technical.ly)

You can check out the full tutorial at BNIA’s YouTube channel:


Donte Kirby is a 2020-2022 corps member for Report for America, an initiative of The Groundtruth Project that pairs young journalists with local newsrooms. This position is supported by the Robert W. Deutsch Foundation. -30-
Subscribe to our Newsletters
Connect with companies from the Technical.ly community
New call-to-action

Advertisement

Technically Media

Sign-up for daily news updates from Technical.ly Baltimore