Replies: 1 comment 14 replies
-
To resolve the "unhashable type: 'numpy.ndarray'" error when querying a remote parquet file using Here is the modified from json import JSONEncoder
import numpy as np
class CustomEncoder(JSONEncoder):
def default(self, obj):
if isinstance(obj, np.integer):
return int(obj)
elif isinstance(obj, np.ndarray):
return obj.tolist()
# Let the base class default method raise the TypeError
return JSONEncoder.default(self, obj) This modification will convert |
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to access a public h3 parquet file:
Throws the error:
I would expect something like we might get from duckdb:
Beta Was this translation helpful? Give feedback.
All reactions