jorisvandenbossche commented on code in PR #49247:
URL: https://github.com/apache/arrow/pull/49247#discussion_r3021581341
##########
python/pyarrow/tests/test_pandas.py:
##########
@@ -3047,6 +3049,10 @@ def test_all_none_category(self):
def test_empty_arrays(self):
for dtype_str, pa_type in self.type_pairs:
+ if (Version(pd.__version__) >= Version("3.0.0") and
+ pa_type == pa.string()):
+ # PyArrow backed string dtype are set by default
+ dtype_str = 'str'
Review Comment:
Ah, yes, since this test is about empty arrays, pandas will not actually
infer an empty numpy array as string dtype, unless you make it a numpy str
dtype. So this looks good
--
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]