Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-37756][PYTHON] Enable matplotlib test for pandas API on Spark #35036

Closed
wants to merge 2 commits into from
Closed

[SPARK-37756][PYTHON] Enable matplotlib test for pandas API on Spark #35036

wants to merge 2 commits into from

Conversation

itholic
Copy link
Contributor

@itholic itholic commented Dec 28, 2021

What changes were proposed in this pull request?

This PR proposes to install matplotlib for Python 3.9 in our base image, to enable matplotlib test for pandas API on Spark.

Before

Finished test(python3.9): pyspark.pandas.tests.plot.test_series_plot_matplotlib (0s) ... 14 tests were skipped

After

Finished test(python3.9): pyspark.pandas.tests.plot.test_series_plot_matplotlib (56s)

Why are the changes needed?

Currently, some tests are skipped due to lack of matplotlib installed as below:

Screen Shot 2021-12-28 at 12 16 48 PM

So, we'd better to enable this to improve the test coverage.

Does this PR introduce any user-facing change?

No, it's test only.

How was this patch tested?

The existing tests are should be passed.

@github-actions github-actions bot added the INFRA label Dec 28, 2021
Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

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

Looks good but we will have to make sure these tests are actually ran from the CI logs.

@@ -330,6 +330,9 @@ jobs:
# TODO(SPARK-36361): Install coverage in Python 3.9 and PyPy 3 in the base image
python3.9 -m pip install coverage
pypy3 -m pip install coverage
# TODO(SPARK-37761): Install matplotlib in Python 3.9 and PyPy 3 in the base image
Copy link
Member

Choose a reason for hiding this comment

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

Ack. Thank you for filing a JIRA.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

NP! 🤗

@itholic
Copy link
Contributor Author

itholic commented Dec 28, 2021

Looks good but we will have to make sure these tests are actually ran from the CI logs.

Sure, just added before/after test log to the PR description

@HyukjinKwon
Copy link
Member

Merged to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants