The precision/recall functions make use of pandas indexing to quickly compute counts-per-id and other features. There are other ways to do it (i.e., read stuff in as dicts) but that's how it's currently written. If I'm not mistaken, the patent_util file also has the pandas dependency.