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

jorisvandenbossche 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 d6198c038e GH-36412: [Python][CI] Fix deprecation warning about day 
freq alias with latest pandas (#44067)
d6198c038e is described below

commit d6198c038ef35481d6f0969ab8419efc004b0f7d
Author: Joris Van den Bossche <[email protected]>
AuthorDate: Wed Sep 11 19:32:04 2024 +0200

    GH-36412: [Python][CI] Fix deprecation warning about day freq alias with 
latest pandas (#44067)
    
    ### Rationale for this change
    
    Updating our pandas usage to follow pandas' changes (they are deprecating 
the `"d"` alias as alternative for `"D"`)
    
    * GitHub Issue: #36412
    
    Authored-by: Joris Van den Bossche <[email protected]>
    Signed-off-by: Joris Van den Bossche <[email protected]>
---
 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 d4307cd24f..c16d2f9aac 100644
--- a/python/pyarrow/tests/test_compute.py
+++ b/python/pyarrow/tests/test_compute.py
@@ -2417,7 +2417,7 @@ def _check_temporal_rounding(ts, values, unit):
         "millisecond": "s",
         "second": "min",
         "minute": "h",
-        "hour": "d",
+        "hour": "D",
     }
     ta = pa.array(ts)
 

Reply via email to