Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dev/infra/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ RUN $APT_INSTALL software-properties-common git libxml2-dev pkg-config curl wget
RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java

RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.9
RUN python3.9 -m pip install numpy pyarrow 'pandas<=1.4.4' scipy unittest-xml-reporting plotly>=4.8 sklearn 'mlflow>=1.0' coverage matplotlib
RUN python3.9 -m pip install numpy pyarrow 'pandas<=1.4.4' scipy unittest-xml-reporting plotly>=4.8 sklearn 'mlflow>=1.0' coverage matplotlib openpyxl

RUN add-apt-repository ppa:pypy/ppa
RUN apt update
Expand Down
1 change: 0 additions & 1 deletion python/pyspark/pandas/tests/test_dataframe_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ def get_excel_dfs(pandas_on_spark_location, pandas_location):
"expected": pd.read_excel(pandas_location, index_col=0),
}

@unittest.skip("openpyxl")
def test_to_excel(self):
Copy link
Member

@Yikun Yikun Sep 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about this case for pypy3? Will it affect developers run tests?

python_execs = [x for x in ["python3.9", "pypy3"] if which(x)]

(I remember we run pypy3 and python3.9 in CI....but not running, pls let me know if I missed something history changes...)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually PyPy is not tested with Pandas API on Spark per https://github.com/apache/spark/blob/master/dev/sparktestsupport/modules.py#L663-L667 because pyarrow, etc are not available with PyPy. Should probably docunent it somewhere but let's do that separately.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, good to know!

with self.temp_dir() as dirpath:
pandas_location = dirpath + "/" + "output1.xlsx"
Expand Down
1 change: 1 addition & 0 deletions python/pyspark/pandas/tests/test_dataframe_spark_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ def test_spark_io(self):
expected_idx.sort_values(by="f").to_spark().toPandas(),
)

# TODO(SPARK-40353): re-enabling the `test_read_excel`.
@unittest.skip("openpyxl")
def test_read_excel(self):
with self.temp_dir() as tmp:
Expand Down