You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by jo...@apache.org on 2021/08/30 06:28:42 UTC

[arrow] branch master updated: ARROW-13662: [CI] Fix failing strftime test with older pandas

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 26a34c3  ARROW-13662: [CI] Fix failing strftime test with older pandas
26a34c3 is described below

commit 26a34c3a2300620787806c5a8cee08ff30610e3e
Author: Joris Van den Bossche <jo...@gmail.com>
AuthorDate: Mon Aug 30 08:27:03 2021 +0200

    ARROW-13662: [CI] Fix failing strftime test with older pandas
    
    Closes #10976 from jorisvandenbossche/ARROW-13662-2
    
    Authored-by: Joris Van den Bossche <jo...@gmail.com>
    Signed-off-by: Joris Van den Bossche <jo...@gmail.com>
---
 python/pyarrow/tests/test_compute.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/pyarrow/tests/test_compute.py b/python/pyarrow/tests/test_compute.py
index 8713830..c6a106f 100644
--- a/python/pyarrow/tests/test_compute.py
+++ b/python/pyarrow/tests/test_compute.py
@@ -1465,7 +1465,7 @@ def test_strftime():
     from pyarrow.vendored.version import Version
 
     def _fix_timestamp(s):
-        if Version(pd.__version__) <= Version("0.23.0"):
+        if Version(pd.__version__) < Version("1.0.0"):
             return s.to_series().replace("NaT", pd.NaT)
         else:
             return s