mirror of
https://github.com/apache/arrow.git
synced 2026-10-28 16:47:19 +08:00
Address Python 2.7 unicode interaction issue with Cython
This commit is contained in:
1 parent
4d94b2e173
commit
747c893719
1 file changed
+2
-2
@@ -60,10 +60,10 @@ cdef class _PandasAPIShim(object):
|
||||
|
||||
from distutils.version import LooseVersion
|
||||
self._loose_version = LooseVersion(pd.__version__)
|
||||
if self._loose_version >= '0.20.0':
|
||||
if self._loose_version >= LooseVersion('0.20.0'):
|
||||
from pandas.api.types import DatetimeTZDtype
|
||||
self._types_api = pd.api.types
|
||||
elif self._loose_version >= '0.19.0':
|
||||
elif self._loose_version >= LooseVersion('0.19.0'):
|
||||
from pandas.types.dtypes import DatetimeTZDtype
|
||||
self._types_api = pd.api.types
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user