Skip to content

Conversation

@allisonwang-db
Copy link
Contributor

What changes were proposed in this pull request?

This PR refines the docstring of DataFrame.show by 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

Copy link
Contributor

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. ?

Copy link
Contributor Author

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?

Copy link
Contributor

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

ditto.

Copy link
Contributor

@beliefer beliefer left a comment

Choose a reason for hiding this comment

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

@HyukjinKwon
Copy link
Member

@allisonwang-db mind rebasing

@allisonwang-db allisonwang-db force-pushed the spark-45442-refine-show branch from d5c7aeb to 9ff89b8 Compare October 12, 2023 01:28
@zhengruifeng
Copy link
Contributor

merged to master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants