jorisvandenbossche commented on code in PR #44195:
URL: https://github.com/apache/arrow/pull/44195#discussion_r1901670255
##########
python/pyarrow/tests/test_compute.py:
##########
@@ -1020,7 +1020,7 @@ def test_replace_slice():
offsets = range(-3, 4)
arr = pa.array([None, '', 'a', 'ab', 'abc', 'abcd', 'abcde'])
- series = arr.to_pandas()
+ series = arr.to_pandas().astype(object).replace({np.nan: None})
Review Comment:
Yes, that is the entire goal of the PR: "If pandas >= 3.0 is used, ensure
that `to_pandas()` calls use the default string dtype" instead of the current
object dtype, so this will indeed be a breaking change, to follow the breaking
change that pandas itself is making in the upcoming 3.0 version.
--
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]