pandas-compat is a package providing an API compatibility across versions to downstream libraries that use pandas.
This compatibility layer requires pandas
>= 0.17.0.
$ conda install pandas-compat --channel conda-forge
$ pip install pandas-compat
$ pip install git+https://github.com/pandas-compat/pandas-compat.git
In your downstream library, you can use this pattern:
import pandas_compat as pdc
pdc.is_datetime64tz_dtype(...)
pdc.infer_dtype(...)