doctests compatible with pandas 0.14.0 and older
Add try/except block for pandas doctest compatibility