Skip to content

Commit

Permalink
Add fix for np.intc pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Apr 6, 2023
1 parent c35c112 commit f3c800d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions holoviews/core/data/pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
from .. import util
from .util import finite_range

if Version(pd.__version__) == Version("2.0.0"):
# https://github.com/pandas-dev/pandas/issues/52451
from pandas._libs import hashtable
pd.core.reshape.merge._factorizers[np.intc] = hashtable.Int32Factorizer


class PandasAPI:
"""
Expand Down

0 comments on commit f3c800d

Please sign in to comment.