raulcd commented on code in PR #44195:
URL: https://github.com/apache/arrow/pull/44195#discussion_r1886486703


##########
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:
   Once pandas 3.0 is released this can be simplified, right? Should we open an 
issue so we don't forget to remove the interim env var and the check for it, 
which won't be necessary anymore



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