jorisvandenbossche commented on code in PR #49247:
URL: https://github.com/apache/arrow/pull/49247#discussion_r2797532263


##########
python/pyarrow/array.pxi:
##########
@@ -2308,6 +2308,13 @@ cdef _array_like_to_pandas(obj, options, types_mapper):
         dtype = "object"
     elif types_mapper:
         dtype = types_mapper(original_type)
+    elif _pandas_api.uses_string_dtype() and (

Review Comment:
   I think it would be better to move this check a bit more above, together 
with the if/elif block checking for types_mapper. Because then we get to `if 
hasattr(dtype, '__from_arrow__'):` and will avoid actually converting the 
pyarrow memory to an numpy object-dtype array of strings



-- 
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