Fixed Pandas frequency constant typo and ported to Python 3