You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/01/21 12:34:30 UTC

[GitHub] [arrow] AlenkaF commented on pull request #12178: ARROW-9664: [Python] Array/ChunkedArray.to_pandas do not support types_mapper keyword

AlenkaF commented on pull request #12178:
URL: https://github.com/apache/arrow/pull/12178#issuecomment-1018467474


   @jorisvandenbossche Looking at the docstrings for the `types_mapper` I think item 1) from your list should test if `None` is added in the mapping function, then the default conversion is used. For example: `types_mapper = {pa.int8(): None}.get`. 
   
   > The function receives a pyarrow DataType and is expected to return a pandas ExtensionDtype or None if the default conversion should be used for that type.
   
   Is that what you meant?


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org