Skip to content

[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
apache:masterfrom
dongjoon-hyun:SPARK-57974
Closed

[SPARK-57974][PYTHON][DOCS] Add pandas upper bound <3.0.0 in dev/requirements.txt and install.rst#57051
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-57974

Conversation

@dongjoon-hyun

@dongjoon-hyun dongjoon-hyun commented Jul 6, 2026

Copy link
Copy Markdown
Member

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:

"PySpark does not yet fully support pandas >= 3.0.0. "
"Some features may not work correctly. "
"It is recommended to use pandas < 3.0.0 for now.",

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

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-57974][DOCS] Add pandas upper bound <3.0.0 in dev/requirements.txt and install.rst [SPARK-57974][PYTHON][DOCS] Add pandas upper bound <3.0.0 in dev/requirements.txt and install.rst Jul 6, 2026
@dongjoon-hyun

Copy link
Copy Markdown
Member Author

cc @huaxingao since Apache Spark 4.2.0 doesn't support Pandas 3.0.0 yet.

@dongjoon-hyun

Copy link
Copy Markdown
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>
@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Merge Summary:

Posted by merge_spark_pr.py

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>
@dongjoon-hyun

Copy link
Copy Markdown
Member Author

I also backported to

@dongjoon-hyun dongjoon-hyun deleted the SPARK-57974 branch July 6, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants