Fix for pandas 0.13