sergun opened a new issue, #38644:
URL: https://github.com/apache/arrow/issues/38644
### Describe the usage question you have. Please include as many useful
details as possible.
Why such very basic example throws
```pyarrow.lib.ArrowInvalid: Cannot do zero copy conversion into
multi-column DataFrame block```?
```
table = pa.table({'a': [1, 2, 3]})
df = table.to_pandas(types_mapper=pd.ArrowDtype, zero_copy_only=True)
```
Versions of pandas and PyArrow are:
```
pd.__version__
'2.1.2'
pa.__version__
'14.0.1'
```
Dtypes of the result in case of `zero_copy_only=False` call
```
table = pa.table({'a': [1, 2, 3]})
df = table.to_pandas(types_mapper=pd.ArrowDtype, zero_copy_only=False)
```
are:
```
df.dtypes
a int64[pyarrow]
dtype: object
```
### 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]