Skip to content

Commit

Permalink
fix for when passing dtypes instead of dtype names
Browse files Browse the repository at this point in the history
  • Loading branch information
jpn-- committed Nov 24, 2024
1 parent ea8174f commit e408414
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sharrow/relationships.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,10 @@ def get_expr(
-------
DataArray
"""
if np.issubdtype(dtype, np.number):
dtype = dtype.__name__
elif dtype is bool:
dtype = "bool"
try:
if allow_native:
result = self[expression]
Expand Down

0 comments on commit e408414

Please sign in to comment.