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
kgullikson88 and kgullikson-sc authored Jul 13, 2021
1 parent 942c5ac commit 2cdb539
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion holoviews/core/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@
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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"pyviz_comms >=0.7.4",
"panel >=0.9.5",
"colorcet",
"pandas <1.3.0",
"pandas >=0.20.0",
]

extras_require = {}
Expand Down

0 comments on commit 2cdb539

Please sign in to comment.