COMPAT: Pandas 0.8.1 compatibility. Closes #983.

Fixes import.