-
Notifications
You must be signed in to change notification settings - Fork 28.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-45179][PYTHON] Increase Numpy minimum version to 1.21
### What changes were proposed in this pull request? Increase Numpy minimum version to 1.21 ### Why are the changes needed? - according to the [release history](https://pypi.org/project/numpy/#history), Numpy 1.15 was released about 5 years ago, while the last maintenance release in 1.21 was released 1 year ago; - with 1.21 as the minimum version, we can discard all version checking in PySpark; - `pandas==1.4.4` just depends on `numpy>=1.21.0`; ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? search with `ag` ``` (spark_dev_310) ➜ spark git:(master) ag --py 'numpy\.__version' python (spark_dev_310) ➜ spark git:(master) (spark_dev_310) ➜ spark git:(master) ag --py 'np\.__version' python python/pyspark/ml/image.py 231: if LooseVersion(np.__version__) >= LooseVersion("1.9"): python/pyspark/pandas/typedef/typehints.py 152: if sys.version_info >= (3, 8) and LooseVersion(np.__version__) >= LooseVersion("1.21"): python/pyspark/pandas/tests/test_typedef.py 365: if sys.version_info >= (3, 8) and LooseVersion(np.__version__) >= LooseVersion("1.21"): python/pyspark/pandas/tests/computation/test_apply_func.py 257: if sys.version_info >= (3, 8) and LooseVersion(np.__version__) >= LooseVersion("1.21"): ``` ### Was this patch authored or co-authored using generative AI tooling? no Closes #42944 from zhengruifeng/bump_min_np_ver. Authored-by: Ruifeng Zheng <ruifengz@apache.org> Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
- Loading branch information
1 parent
0d1f43c
commit 82ed1c9
Showing
6 changed files
with
11 additions
and
21 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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