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-35705][PYTHON] Adjust pandas-on-spark test_groupby_multiindex_columns test for different pandas versions #32851

Closed
wants to merge 1 commit into from

Conversation

xinrong-meng
Copy link
Member

What changes were proposed in this pull request?

Adjust pandas-on-spark test_groupby_multiindex_columns test in order to pass with different pandas versions.

Why are the changes needed?

pandas had introduced bugs as below:

  • For pandas 1.1.3 and 1.1.4
    Type error: only integer scalar arrays can be converted to a scalar index

  • For pandas < 1.0.4
    Type error: Can only tuple-index with a MultiIndex

We ought to adjust test_groupby_multiindex_columns tests by comparing with a predefined return value, rather than comparing with the pandas return value in the pandas versions above.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Unit tests.

@SparkQA
Copy link

SparkQA commented Jun 10, 2021

Test build #139599 has finished for PR 32851 at commit 43b30bd.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jun 10, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/44126/

@xinrong-meng
Copy link
Member Author

CC @ueshin @HyukjinKwon @itholic

@HyukjinKwon
Copy link
Member

Merged to master.

@SparkQA
Copy link

SparkQA commented Jun 10, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/44126/

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