Blog

A blog of Python-related topics and code.

Counting seeds with Python

On Sunday my daughter and I planted some cress seeds. The packet claimed that it contained an average of 500 seeds, so here's an attempt to validate that claim using Python. We planted the seeds on kitchen towel, so there is a good contrast between the seeds and the background (click for the full size image).

UK house price heatmap

Last blog article about UK house prices (promise). It has become popular in the media to present house prices on a choropleth map, in which regions are coloured according to the price. Using the database created in this previous blog post, we can do this (fairly) easily. Here, the regions considered will be based on the first letters of the properties' postcodes.

Analysis of UK house price data

Having built a database of UK house "paid price" data as described in a previous blog post, we can do some analysis. From within PostgreSQL, one can do straighforward things like get a property's price history. For example:

Building a database of UK house prices

The UK Land Registry keeps a record of the date and price of every house sale in the country and makes this data available on its website. It provides an online tool for searching entries related to individual properties and even has a SPARQL interface, but here we download the raw data and load it into a PostgreSQL database with Python.

Penrose Tiling #2

A short gallery of images generated by my Penrose tiling generator, available on github.