[SPARK-57974][PYTHON][DOCS] Add pandas upper bound <3.0.0 in dev/requirements.txt and install.rst#57051
Closed
dongjoon-hyun wants to merge 1 commit into
Closed
[SPARK-57974][PYTHON][DOCS] Add pandas upper bound <3.0.0 in dev/requirements.txt and install.rst#57051dongjoon-hyun wants to merge 1 commit into
<3.0.0 in dev/requirements.txt and install.rst#57051dongjoon-hyun wants to merge 1 commit into
Conversation
…nts.txt` and `install.rst`
<3.0.0 in dev/requirements.txt and install.rst<3.0.0 in dev/requirements.txt and install.rst
Member
Author
|
cc @huaxingao since Apache Spark 4.2.0 doesn't support Pandas 3.0.0 yet. |
gaogaotiantian
approved these changes
Jul 6, 2026
Member
Author
|
Thank you so much, @gaogaotiantian ! |
dongjoon-hyun
added a commit
that referenced
this pull request
Jul 6, 2026
…quirements.txt` and `install.rst` ### What changes were proposed in this pull request? This PR aims to add an upper bound `<3.0.0` to the `pandas` requirement in `dev/requirements.txt` and the installation guide (`python/docs/source/getting_started/install.rst`) because Apache Spark 4.2.0 doesn't support it. Apache Spark 4.3.0 will support `Pandas 3` via SPARK-55139 officially. ### Why are the changes needed? PySpark does not yet fully support pandas 3.x and warns at runtime when pandas >= 3.0.0 is detected: https://github.com/apache/spark/blob/4553429c621044bb30d20b901f61bed8b2089817/python/pyspark/sql/pandas/utils.py#L63-L65 ### Does this PR introduce _any_ user-facing change? No. This only affects the development requirements file and documentation. ### How was this patch tested? Manual review. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Fable 5 Closes #57051 from dongjoon-hyun/SPARK-57974. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 3e88122) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
dongjoon-hyun
added a commit
that referenced
this pull request
Jul 6, 2026
…quirements.txt` and `install.rst` ### What changes were proposed in this pull request? This PR aims to add an upper bound `<3.0.0` to the `pandas` requirement in `dev/requirements.txt` and the installation guide (`python/docs/source/getting_started/install.rst`) because Apache Spark 4.2.0 doesn't support it. Apache Spark 4.3.0 will support `Pandas 3` via SPARK-55139 officially. ### Why are the changes needed? PySpark does not yet fully support pandas 3.x and warns at runtime when pandas >= 3.0.0 is detected: https://github.com/apache/spark/blob/4553429c621044bb30d20b901f61bed8b2089817/python/pyspark/sql/pandas/utils.py#L63-L65 ### Does this PR introduce _any_ user-facing change? No. This only affects the development requirements file and documentation. ### How was this patch tested? Manual review. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Fable 5 Closes #57051 from dongjoon-hyun/SPARK-57974. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 3e88122) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Member
Author
dongjoon-hyun
added a commit
that referenced
this pull request
Jul 6, 2026
…quirements.txt` and `install.rst` This PR aims to add an upper bound `<3.0.0` to the `pandas` requirement in `dev/requirements.txt` and the installation guide (`python/docs/source/getting_started/install.rst`) because Apache Spark 4.2.0 doesn't support it. Apache Spark 4.3.0 will support `Pandas 3` via SPARK-55139 officially. PySpark does not yet fully support pandas 3.x and warns at runtime when pandas >= 3.0.0 is detected: https://github.com/apache/spark/blob/4553429c621044bb30d20b901f61bed8b2089817/python/pyspark/sql/pandas/utils.py#L63-L65 No. This only affects the development requirements file and documentation. Manual review. Generated-by: Claude Fable 5 Closes #57051 from dongjoon-hyun/SPARK-57974. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 3e88122) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
dongjoon-hyun
added a commit
that referenced
this pull request
Jul 6, 2026
…quirements.txt` and `install.rst` This PR aims to add an upper bound `<3.0.0` to the `pandas` requirement in `dev/requirements.txt` and the installation guide (`python/docs/source/getting_started/install.rst`) because Apache Spark 4.2.0 doesn't support it. Apache Spark 4.3.0 will support `Pandas 3` via SPARK-55139 officially. PySpark does not yet fully support pandas 3.x and warns at runtime when pandas >= 3.0.0 is detected: https://github.com/apache/spark/blob/4553429c621044bb30d20b901f61bed8b2089817/python/pyspark/sql/pandas/utils.py#L63-L65 No. This only affects the development requirements file and documentation. Manual review. Generated-by: Claude Fable 5 Closes #57051 from dongjoon-hyun/SPARK-57974. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 3e88122) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 41dfd70) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This PR aims to add an upper bound
<3.0.0to thepandasrequirement indev/requirements.txtand the installation guide (python/docs/source/getting_started/install.rst) because Apache Spark 4.2.0 doesn't support it. Apache Spark 4.3.0 will supportPandas 3via SPARK-55139 officially.Why are the changes needed?
PySpark does not yet fully support pandas 3.x and warns at runtime when pandas >= 3.0.0 is detected:
spark/python/pyspark/sql/pandas/utils.py
Lines 63 to 65 in 4553429
Does this PR introduce any user-facing change?
No. This only affects the development requirements file and documentation.
How was this patch tested?
Manual review.
Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Fable 5