Skip to content

Commit

Permalink
fix(datatypes): fix bad references in to_numpy()
Browse files Browse the repository at this point in the history
  • Loading branch information
deepyaman authored and jcrist committed Jan 4, 2024
1 parent d5a0779 commit 6fd4550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ibis/expr/datatypes/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,9 @@ def from_dask(cls, dask_type, nullable=True) -> Self:

def to_numpy(self):
"""Return the equivalent numpy datatype."""
from ibis.formats.numpy import NumpyFormat
from ibis.formats.numpy import NumpyType

return NumpyFormat.from_dtype(self)
return NumpyType.from_ibis(self)

def to_pandas(self):
"""Return the equivalent pandas datatype."""
Expand Down

0 comments on commit 6fd4550

Please sign in to comment.