For a long time, I've had this hobby project exploring Philadelphia City Council election data. I've learned no agency has this data collected or maintained in a consistent, normalized manner. From election to election, vote counts are presented in different ways (as explored in this blog post), candidate names are …read more
I have a Python script that does some image manipulation and outputs a new file. From the command line, it takes two arguments, the old file and new file:
python image_converter.py oldfile.jpg newfile.jpg
I wanted to run this over a bunch of files, and used this bash …read more
I had a list of names and I wanted to create an empty file with each of those names.
First I saved my list of names to a file with the .md extension since they were all going to be markdown files.
barack.md joe.md hillary.md …
Sometimes I'll be working on a project, having moved along a few steps from my last commit, only to remember there was something else I wnated to do before the point I'm at now. Since the point I'm at now isn't really ready for a commit, I don't want to …read more
I'm continuing to work on my project analyzing data about Philadelphia City Council - elections, demographics, terms of service, etc., even as heartbroken and terrified I am about the recent Presidential election. A very crude version of this project is here. A big thing that this never did was to look …read more
A couple of weeks ago I was interviewed by the Podcast.init team to talk about Software Carpentry and Data Carpentry. The request for an interview actually came in a couple of months ago and I asked Greg Wilson, Software Carpentry's then-Executive Director about doing it, telling him I was …read more
This weekend I taught an Intro to Python class on behalf of the Philadelphia Python Users Group (PhillyPUG). I’ve taught this kind of workshop before but a few things made this one different.read more
When you work in python, you’ll see this if
__name__ = '__main__'all over the place. It took me forever to really understand what it means. Actually, I still often have to think through each time I see or use it (but I don’t really use it myself).
I …read more
Page 1 / 2 »