jorisvandenbossche commented on code in PR #44195:
URL: https://github.com/apache/arrow/pull/44195#discussion_r1886633479
##########
python/pyarrow/pandas-shim.pxi:
##########
@@ -174,6 +175,20 @@ cdef class _PandasAPIShim(object):
self._check_import()
return self._is_ge_v3
+ def is_ge_v3_strict(self):
+ self._check_import()
+ return self._is_ge_v3_strict
+
+ def uses_string_dtype(self):
+ if self.is_ge_v3_strict():
+ return True
+ try:
+ if self.pd.options.future.infer_string:
+ return True
+ except:
+ pass
+ return False
Review Comment:
It probably shouldn't be removed directly after 3.0 is released, because for
quite a while this will still be useful for people install pandas 2.3 and
enabling the option
--
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]