-
Python
Python: Selecting certain indexes in an array
A couple of days ago I was scrapping the UK parliament constituencies from Wikipedia in preparation for the Graph Connect…
Read More » -
Python
Python: matplotlib hangs and shows nothing (Mac OS X)
I’ve been playing around with some of the matplotlib demos recently and discovered that simply copying one of the examples…
Read More » -
Python
Python: Simplifying the creation of a stop word list with defaultdict
I’ve been playing around with topics models again and recently read a paper by David Mimno which suggested the following…
Read More » -
Python
Python: Checking any value in a list exists in a line of text
I’ve been doing some log file analysis to see what cypher queries were being run on a Neo4j instance and…
Read More » -
Python
Python/Neo4j: Finding interesting computer sciency people to follow on Twitter
At the beginning of this year I moved from Neo4j’s field team to dev team and since the code we…
Read More » -
Python
Python: Streaming/Appending to a file
I’ve been playing around with Twitter’s API (via the tweepy library) and due to the rate limiting it imposes I…
Read More » -
Python
Python: scikit-learn – Training a classifier with non numeric features
Following on from my previous posts on training a classifier to pick out the speaker in sentences of HIMYM transcripts…
Read More » -
Python
Python/pandas: Column value in list
I’ve been using Python’s pandas library while exploring some CSV files and although for the most part I’ve found it…
Read More » -
Python
Python: Find the highest value in a group
In my continued playing around with a How I met your mother data set I needed to find out the…
Read More »