jorisvandenbossche commented on issue #38644: URL: https://github.com/apache/arrow/issues/38644#issuecomment-1803748534
The `zero_copy_only` keyword hasn't really been made to work with `types_mapper`, so yes this can be seen as a wrong error message. However, it's also difficult to properly implement that, because pyarrow doesn't know if the type you pass to `types_mapper` will be able to convert zero-copy or not. (but the message about "multi-column DataFrame block" is certainly confusing) Now, is there a reason you want to use this keyword? If you use `types_mapper=pd.ArrowDtype`, you have the guarantee that the conversions are zero-copy. -- 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]
