Skip to content

Commit df5d516

Browse files
bjornjorgensenpre-commit-ci[bot]mathbunnyru
authored
Pin pandas to version 1.5.3 to all spark images (#1925)
* 1. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add note * typo * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * remove test * >=1.5.3 and <2.0.0 * update test * Update pyspark-notebook/Dockerfile Co-authored-by: Ayaz Salikhov <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update pyspark-notebook/Dockerfile Co-authored-by: Ayaz Salikhov <[email protected]> * move test to file * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add pandas to EXCLUDED_PACKAGES * add 1.5.3,<2.0.0 and sort list * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add ' * "pandas[version='>" * Rename test_pandas_version.py to unit_pandas_version.py --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ayaz Salikhov <[email protected]>
1 parent 846f4cd commit df5d516

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

pyspark-notebook/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ RUN fix-permissions "/etc/ipython/"
6565
USER ${NB_UID}
6666

6767
# Install pyarrow
68+
# Temporarily pin pandas to version 1.5.3, see: https://github.com/jupyter/docker-stacks/issues/1924
6869
RUN mamba install --yes \
70+
'pandas>=1.5.3,<2.0.0' \
6971
'pyarrow' && \
7072
mamba clean --all -f -y && \
7173
fix-permissions "${CONDA_DIR}" && \

tests/base-notebook/test_packages.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
"hdf5",
7272
"jupyterlab-git",
7373
"openssl",
74+
"pandas[version='>",
7475
"protobuf",
7576
"python",
7677
"r-irkernel",
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) Jupyter Development Team.
2+
# Distributed under the terms of the Modified BSD License.
3+
4+
import pandas
5+
6+
assert pandas.__version__ == "1.5.3"

0 commit comments

Comments
 (0)