AlenkaF commented on code in PR #49247:
URL: https://github.com/apache/arrow/pull/49247#discussion_r2798505688
##########
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:
Yes, that was my first idea but didn't think it well through before changing
to what I have now. The thing is that I have hit this line
https://github.com/AlenkaF/arrow/blob/6f1fda5ef1cfe7ee40ccd1ddefc3861c2718d920/python/pyarrow/array.pxi#L2319
and then the change of the dtype got reverted to `None`.
Will try putting the whole if/elif block further back, as suggested (if I do
not break something else).
--
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]