BUG: Fix comparison for pandas 0.14. Closes #377.