Plotting eight years of book buying habits

Since late-2008, I’ve been adding my book purchases to my online catalog at LibraryThing. I thought 8 years worth of (a relatively small set of) data would be worthwhile to play with.
 
They had an export option that gave me a tab-separated dump of all these books. One column in this file is the ‘Entry Date‘ that shows when I added it to the website (usually within a day or two of buying it). This is what I was interested in.

My first exploration involved matplotlib. It did its job well but I got sidetracked into ‘prettier’ packages like plot.ly and bokeh. The latter is what I ended up using.

The data processing was trivial. I only needed to calculate how many books I added in a given month and plot a bar chart from the resulting counts. The result looks like this:

And it confirms what I suspected!

  • I got married in 2011. The density drops off drastically then, but is still reasonable.
  • Kid #1 popped out in April 2014, and the second little fellow in March 2016. The counts are a lot more sparse there onwards :(

I’m trying to get them interested in books so they’ll leave me in peace as well. Let’s see how that goes.

…and here is the code to make it happen. It’s just a simple script so I didn’t make the extra effort in packaging it and so on. I used anaconda/Spyder to develop the script, and it was pretty easy, despite my complete lack of knowledge in this area.

Some new ebooks

For reasons that I can’t fully explain, I bought some ebooks over the weekend, in spite of not having a good ereader. I have an ancient Sony Reader that hasn’t been touched in years, so that doesn’t count. I have two tablets in the same situation. My current phone has a small screen, so it’s not very comfortable for reading either.

I suppose the deals were good, although I would’ve liked to own proper books for some of them.

  • Peter Watts – Echopraxia and Firefall – I’m a huge fan of Starfish and the other books he’s written, so these were no-brainers.
  • Alex Bellos – Alex through the Looking Glass – A sequel to his excellent Alex’s adventures in Numberland.
  • David Wong – This book is full of spiders – Again, a sequel to a book I’ve already read and liked: the excellently titled John dies at the end.

Going by the other ebooks I’ve purchased in the past, these seem destined to languish in a virtual shelf for quite some time :( Given the high quality of the authors, I’d prefer not to though. And if I settle into a better rhythm with these than dead-tree books, who knows.. these might become my preferred medium for new purchases.

Why the literati love Muhammad Ali

In a book that was decades in the construction, the journalist Christopher Booker argued that all stories in all literature conform to at least one of Seven Basic Plots. Ali’s life conforms to them all: Overcoming the Monster (Liston, Foreman), Rags to Riches, the Quest, Voyage and Return (Zaire and then Manila, where he fought Frazier), Comedy (“I hospitalised a brick/I’m so mean I make medicine sick”), Tragedy (the withdrawal of his boxing licence during his peak years for resisting the Vietnam draft, his imprisonment by Parkinson’s) and Rebirth (his defeat of Foreman at the age of 32).

The world’s become a little duller today

image source
image source

Terry Pratchett, Discworld series author, dies aged 66 | Books | The Guardian.

I don’t remember my first Pratchett book, but it didn’t take me long to accumulate pretty much the entire collection.

Like every book nerd, I’ve kept a quotes file that grew over time with tiny bits of text I liked. It shouldn’t be a surprise that a wordsmith like him should figure prominently in it. Here’s one, from Guards! Guards!

It was amazing, this mystic business. You tell them a lie, and then when you don’t need it any more you tell them another lie and tell them they’re progressing along the road to wisdom. Then instead of laughing they follow you even more, hoping that at the heart of all the lies they’ll find the truth. And bit by bit they accept the unacceptable.

And here’s a neat bit of Pratchett trivia: when he was knighted, he forged his own sword, infused with bits of meteorite.

I’m re-reading some old favourites again (starting with Jingo, and moving on to the other Watch novels). Here’s a good reading guide for those getting started.

Melancholy

image credit
image credit

Suddenly for no earthly reason I felt immensely sorry for him and longed to say something real, something with wings and a heart, but the birds I wanted settled on my shoulders and head only later when I was alone and not in need of words.

― Vladimir Nabokov, The Real Life of Sebastian Knight