Yesterday I had a problem I ended up solving another way, but my first approach required a lazy dictionary. That is, a dictionary filled with the results of some other function, but also one that only evaluated this computation when the dictionary was first accessed. Read more »
Monthly Archives: April 2010
delaying computation: lazy dictionaries in Python
Posted by Matt Bone
on April 20, 2010
Comments Off
python thirty days ago
Posted by Matt Bone
on April 16, 2010
Comments Off
plotting the racial makeup of Chicago’s public schools
Posted by Matt Bone
on April 13, 2010
Comments Off

I created this image using matplotlib and the data from my CPS Racial Data Warehouse project. Circle size represents school population. The axes are latitude and longitude (as a reference, the loop is the empty rectangle just below the left corner of the legend). Also I should note the Native American population was excluded from this image because of a technical issue.
Full size image here, more on this project soon (in the meantime, the code is here).