#59 (which I just rebased) switches this conversion back to not using pandas.