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-45773][PYTHON][DOCS] Refine docstring of SparkSession.builder.config #43639

Closed

Conversation

allisonwang-db
Copy link
Contributor

What changes were proposed in this pull request?

This PR refines the docstring of the method SparkSession.builder.config.

Why are the changes needed?

To improve PySpark documentation.

Does this PR introduce any user-facing change?

No

How was this patch tested?

doc test

Was this patch authored or co-authored using generative AI tooling?

No

Comment on lines 276 to 278
>>> SparkSession.builder \\
... .config("spark.some.config.number", 123) \\
... .config("spark.some.config.float", 0.123)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
>>> SparkSession.builder \\
... .config("spark.some.config.number", 123) \\
... .config("spark.some.config.float", 0.123)
>>> SparkSession.builder.config(
... "spark.some.config.number", 123).config(
... "spark.some.config.float", 0.123)

Copy link
Member

Choose a reason for hiding this comment

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

Using backslashes are sort of implicitly discouraged in PEP8.

@HyukjinKwon
Copy link
Member

Merged to master.

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