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-40606][PS][TEST] Eliminate to_pandas warnings in test #38042

Closed
wants to merge 1 commit into from

Conversation

zhengruifeng
Copy link
Contributor

@zhengruifeng zhengruifeng commented Sep 29, 2022

What changes were proposed in this pull request?

Eliminate to_pandas warnings in test, by changing to_pandas() to _to_pandas()

Why are the changes needed?

when a test containing to_pandas failed, it may print tons of warnings, for example, in https://github.com/zhengruifeng/spark/actions/runs/3142284988/jobs/5106178199

it printed this warning from line 1243 to line 3985:

image

Does this PR introduce any user-facing change?

No

How was this patch tested?

updated tests

@@ -152,7 +152,7 @@ def test_from_to_pandas(self):
data = [b"1", b"2", b"3"]
pser = pd.Series(data)
psser = ps.Series(data)
self.assert_eq(pser, psser.to_pandas())
self.assert_eq(pser, psser._to_pandas())
Copy link
Member

Choose a reason for hiding this comment

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

Just for my info, what is the difference in the old and new method, anything functional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the only difference between to_pandas() and _to_pandas() is the warning.

@zhengruifeng
Copy link
Contributor Author

also cc @HyukjinKwon @itholic @xinrong-meng

@zhengruifeng
Copy link
Contributor Author

Merged into master, thanks all

@zhengruifeng zhengruifeng deleted the ps_test_to_pandas branch September 30, 2022 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants