The joys of real world data... I received a file today with building floors: 1st, 2nd, 3rd, all the way to 22nd... Regular sorting quickly got me nowhere, with results that started 10th, 11th, 12th, 13th, 14th, 15th, 16th, 17th, 18th, 19th, 1st, 22nd, etc. This led to my discovery of the most marvellous natsort... Continue Reading →

A Multi-index conundrum

A Pandas series can have more than one index value. I discovered this fact during the week when I found the .groupby() method which was going to be very useful to me in getting a count of values. I started with data similar to this and my objective was to get a summary of numbers... Continue Reading →

Create a website or blog at

Up ↑