CorridorScope – A Day in the Life of Water Street

    According to IBM, we generated 2.5 billion gigabytes of data every day in 2012.  One of my passions is making that data comprehensible, especially when it concerns cities and the urban environment. Which is why I was excited when I found out about the BigIdea sponsored by the Alliance for Downtown New York for […]

You going to enumerate that?

Following my last post on OrderedDict in Python, I came across another useful technique for working with data in Python, the enumerate function. In C++, using an index to reference data is second nature, but in Python with list comprehensions. For example: mylist = [‘foo’,’bar’,’boo’] for i in mylist: print i >>>foo bar boo This returns the […]