pandas 0.13 compatibility