-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-45442][PYTHON][DOCS] Refine docstring of DataFrame.show #43252
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-45442][PYTHON][DOCS] Refine docstring of DataFrame.show #43252
Conversation
python/pyspark/sql/dataframe.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked all the other cases.
Shall we change to default 20. Number of rows to show. ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm I didn't get the point. Do you mean changing Default is 20 to Default: 20 rows to show since the truncation is also 20 characters?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Number of rows to show to default 20. Number of rows to show.
python/pyspark/sql/dataframe.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto.
beliefer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. cc @HyukjinKwon @zhengruifeng
|
@allisonwang-db mind rebasing |
d5c7aeb to
9ff89b8
Compare
|
merged to master |
What changes were proposed in this pull request?
This PR refines the docstring of
DataFrame.showby adding more examples.Why are the changes needed?
To improve PySpark documentations.
Does this PR introduce any user-facing change?
No
How was this patch tested?
doctest
Was this patch authored or co-authored using generative AI tooling?
No