added a compatiblilty layer for pandas .13