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

gaogaotiantian pushed a commit to branch branch-4.x
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-4.x by this push:
     new 2f5a36f803eb [SPARK-57218][PYTHON] Pin pandas and pandas stub version 
for lint image
2f5a36f803eb is described below

commit 2f5a36f803eb705a22179bbd037287212cbe74d1
Author: Tian Gao <[email protected]>
AuthorDate: Tue Jun 2 17:09:09 2026 -0700

    [SPARK-57218][PYTHON] Pin pandas and pandas stub version for lint image
    
    ### What changes were proposed in this pull request?
    
    Pin pandas and pandas-stub image for lint image.
    
    ### Why are the changes needed?
    
    CI is failing, but we don't support pandas 3 now. We pin pandas version on 
our docker image to match the dev env.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    mypy passed locally. Pending CI.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #56289 from gaogaotiantian/pin-pandas-version-lint.
    
    Authored-by: Tian Gao <[email protected]>
    Signed-off-by: Tian Gao <[email protected]>
    (cherry picked from commit af55029b65be4c41eaaa224020e332cd423304a2)
    Signed-off-by: Tian Gao <[email protected]>
---
 dev/spark-test-image/lint/Dockerfile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev/spark-test-image/lint/Dockerfile 
b/dev/spark-test-image/lint/Dockerfile
index 14a0e4fcfe75..c6bf389ecb22 100644
--- a/dev/spark-test-image/lint/Dockerfile
+++ b/dev/spark-test-image/lint/Dockerfile
@@ -95,8 +95,8 @@ RUN python3.12 -m pip install \
     'mypy==1.19.1' \
     'numpy==2.4.1' \
     'numpydoc' \
-    'pandas' \
-    'pandas-stubs' \
+    'pandas==2.3.3' \
+    'pandas-stubs==2.3.3.260113' \
     'plotly>=4.8' \
     'pyarrow>=23.0.0' \
     'pytest-mypy-plugins==1.9.3' \


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to