achapkowski opened a new issue, #38559:
URL: https://github.com/apache/arrow/issues/38559

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   Hello,
   
   Given a simple class like this:
   
   ```python
   import pyarrow as pa
   
   class Point:
       def __init__(self, iterable):
           self._data = iterable    
       @property
       def data(self) -> dict:
           return self._data
   
   
   
   pt = Point({"x" : 1,"y": 2,})
   dataset = [pt]
   
   pa.chunked_array([dataset])
   ```
   
   How can I create a custom data type so it can be stored in the pyarrow Array 
or ChunkArray?
   
   When I try to add a list of these item types, I get the following:
   
   ```pyarrow.lib.ArrowInvalid: Could not convert <Point object at ...> with 
type Point: did not recognize Python value type when inferring an Arrow data 
type```
   
   Is there a way to allow for these custom objects to exist in an arrow array?
   
   
   ### Component(s)
   
   Python


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to