This is an automated email from the ASF dual-hosted git repository.

raulcd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 8fed34e110 GH-45427: [Python] Fix version comparison in pandas compat 
for pandas 2.3 dev version (#45428)
8fed34e110 is described below

commit 8fed34e110429908e6d4cc3eb769ca643a1c798c
Author: Joris Van den Bossche <[email protected]>
AuthorDate: Wed Feb 5 15:44:30 2025 +0100

    GH-45427: [Python] Fix version comparison in pandas compat for pandas 2.3 
dev version (#45428)
    
    ### Rationale for this change
    
    Small follow-up on https://github.com/apache/arrow/pull/45383 to ensure 
this version comparison also does the right thing for the currently 
not-yet-released dev version of 2.3.0
    
    * GitHub Issue: #45427
    
    Authored-by: Joris Van den Bossche <[email protected]>
    Signed-off-by: Raúl Cumplido <[email protected]>
---
 python/pyarrow/pandas-shim.pxi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/pyarrow/pandas-shim.pxi b/python/pyarrow/pandas-shim.pxi
index aab9cf1079..18de584bff 100644
--- a/python/pyarrow/pandas-shim.pxi
+++ b/python/pyarrow/pandas-shim.pxi
@@ -79,7 +79,7 @@ cdef class _PandasAPIShim(object):
 
         self._is_v1 = self._loose_version < Version('2.0.0')
         self._is_ge_v21 = self._loose_version >= Version('2.1.0')
-        self._is_ge_v23 = self._loose_version >= Version('2.3.0')
+        self._is_ge_v23 = self._loose_version >= Version('2.3.0.dev0')
         self._is_ge_v3 = self._loose_version >= Version('3.0.0.dev0')
         self._is_ge_v3_strict = self._loose_version >= Version('3.0.0')
 

Reply via email to