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

   ### Describe the enhancement requested
   
   ```python
   >>> pa.Table.from_pydict({"col": [datetime.date(2024, 1, 
1)]}).__dataframe__().get_column(0)
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File 
"/home/willayd/mambaforge/envs/pantab-dev/lib/python3.12/site-packages/pyarrow/interchange/dataframe.py",
 line 139, in get_column
       return _PyArrowColumn(self._df.column(i),
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File 
"/home/willayd/mambaforge/envs/pantab-dev/lib/python3.12/site-packages/pyarrow/interchange/column.py",
 line 239, in __init__
       self._dtype = self._dtype_from_arrowdtype(dtype, bit_width)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File 
"/home/willayd/mambaforge/envs/pantab-dev/lib/python3.12/site-packages/pyarrow/interchange/column.py",
 line 322, in _dtype_from_arrowdtype
       raise ValueError(
   ValueError: Data type date32[day] not supported by interchange protocol
   ```
   
   
   ### 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