[SPARK-54568][PYTHON] Avoid unnecessary pandas conversion in create dataframe from ndarray#53280
Closed
zhengruifeng wants to merge 3 commits intoapache:masterfrom
Closed
[SPARK-54568][PYTHON] Avoid unnecessary pandas conversion in create dataframe from ndarray#53280zhengruifeng wants to merge 3 commits intoapache:masterfrom
zhengruifeng wants to merge 3 commits intoapache:masterfrom
Conversation
HyukjinKwon
approved these changes
Dec 2, 2025
01bff1d to
d0812c0
Compare
Contributor
Author
|
thanks, merged to master |
zhengruifeng
added a commit
that referenced
this pull request
Dec 4, 2025
….test_with_none_and_nan` ### What changes were proposed in this pull request? There was a bug in create dataframe from ndarray containing NaN values: NaN was incorrectly converted to Null when arrow-optimization is on, it happened to be resolved in #53280 ### Why are the changes needed? for test coverage ### Does this PR introduce _any_ user-facing change? no, test-only ### How was this patch tested? ci ### Was this patch authored or co-authored using generative AI tooling? no Closes #53305 from zhengruifeng/reenable_test_with_none_and_nan. Authored-by: Ruifeng Zheng <ruifengz@apache.org> Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Avoid unnecessary pandas conversion in create dataframe from ndarray
Why are the changes needed?
before:
ndarray -> pandas dataframe -> arrow data
after:
ndarray -> arrow data
and will be consistent with connect mode:
spark/python/pyspark/sql/connect/session.py
Lines 675 to 706 in 40ba971
Does this PR introduce any user-facing change?
no
How was this patch tested?
ci
Was this patch authored or co-authored using generative AI tooling?
no