Skip to content

Commit

Permalink
Add another check to handle pandas 1.3+ in hv/core/utils.py, and reve…
Browse files Browse the repository at this point in the history
…rt the install_requires to what is what before #4976 (#5013)

Co-authored-by: kgullikson <kgullikson@sparkcognition.com>
  • Loading branch information
2 people authored and philippjfr committed Jul 13, 2021
1 parent 1d21d10 commit 2e10072
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion holoviews/core/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ def __cmp__(self, other):
if pd:
pandas_version = LooseVersion(pd.__version__)
try:
if pandas_version >= '0.24.0':
if pandas_version >= '1.3.0':
from pandas.core.dtypes.dtypes import DatetimeTZDtype as DatetimeTZDtypeType
from pandas.core.dtypes.generic import ABCSeries, ABCIndex as ABCIndexClass
elif pandas_version >= '0.24.0':
from pandas.core.dtypes.dtypes import DatetimeTZDtype as DatetimeTZDtypeType
from pandas.core.dtypes.generic import ABCSeries, ABCIndexClass
elif pandas_version > '0.20.0':
Expand Down

0 comments on commit 2e10072

Please sign in to comment.