Skip to content

[MINOR][PYTHON][DOCS] Fixed some links in documentation.#57359

Closed
art000109 wants to merge 9 commits into
apache:masterfrom
art000109:master
Closed

[MINOR][PYTHON][DOCS] Fixed some links in documentation.#57359
art000109 wants to merge 9 commits into
apache:masterfrom
art000109:master

Conversation

@art000109

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Fixed some links in DataFrame and Pandas-On-Spark-DataFrame classes.

Why are the changes needed?

The documentation will be more comprehensive.

Does this PR introduce any user-facing change?

No. This is a documentation-only change.

How was this patch tested?

Manual review.

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

No.

### What changes were proposed in this pull request?
Fixed some links in DataFrame and Pandas-On-Spark-DataFrame classes.

### Why are the changes needed?
The documentation will be more comprehensive.

### Does this PR introduce any user-facing change?
No. This is a documentation-only change.

### How was this patch tested?
Manual review.

### Was this patch authored or co-authored using generative AI tooling?
No.
@art000109 art000109 changed the title [MINOR][PYSPARK][DOCS] Fixed some links in documentation. [MINOR][PYTHON][DOCS] Fixed some links in documentation. Jul 19, 2026
pandas-on-Spark DataFrame that corresponds to pandas DataFrame logically. This holds Spark
DataFrame internally.

.. versionadded:: 3.2.0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Was this added 3.2.0? Also, I think versionchanged directive as for the new parameter

@art000109 art000109 Jul 19, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes, Pandas API was added in SPARK-34849 for 3.2.0

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This API calls the DataFrame.pandas_api function, which was added in version 3.2.0 https://github.com/apache/spark/blob/master/python/pyspark/sql/dataframe.py#L6463

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ah it was pandas'

Comment thread python/pyspark/sql/__init__.py Outdated
"DataFrameWriterV2",
"MergeIntoWriter",
"DataStreamReader",
"DataStreamWriter",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

DataStreamReader / DataStreamWriter technically are not API so we don't need this

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Okay, I've removed that block

See Also
--------
pyspark.pandas.frame.DataFrame.to_spark
pyspark.pandas.DataFrame.to_spark

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This yes we would need thos

Comment thread python/pyspark/sql/functions/builtin.py Outdated
Comment thread python/pyspark/sql/functions/builtin.py Outdated
extraction :
index to check for in array or key to check for in map

Returns

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am documenting them in #57185. Let's avoid those changes for now

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh, sorry. I've deleted this block

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can we remove all?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, of course. Sorry about the conflict. I'll revert the changes to this file. Can we split this PR and I'll make another one after yours?

@HyukjinKwon

Copy link
Copy Markdown
Member

Let's file a JIRA

@art000109

Copy link
Copy Markdown
Contributor Author

@HyukjinKwon I reverted the changes to the builtins.py file. Can I ask you to create a card in Jira? I don't have access to it.

@HyukjinKwon HyukjinKwon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

1 blocking, 0 non-blocking, 0 nits.
A clean documentation link cleanup. One added link is missing its reST closing underscore, so it will render as literal text rather than a hyperlink.

Correctness (1)

  • python/pyspark/sql/dataframe.py:1209: The new Hints link is missing the trailing _, so Sphinx renders it as literal text with visible backticks instead of a link. -- see inline

Verification

Checked all 5 changed files: the ~pyspark.sql.DataFrame cross-references in tvf.py, the ~pyspark.sql.functions.ArrowUDFType shortening in pandas/functions.py, and the pyspark.pandas.DataFrame.to_spark fix in dataframe.py are all correct (verified pyspark.pandas.DataFrame is the public alias exposing to_spark). The core_classes.rst autosummary additions and the frame.py directive relocation are valid. Only the hint() link has a reST syntax defect.

Comment thread python/pyspark/sql/dataframe.py Outdated
Thank you

Co-authored-by: Hyukjin Kwon <gurwls223@gmail.com>
@art000109

Copy link
Copy Markdown
Contributor Author

@HyukjinKwon Thank you for review! I applied your last suggestion. Is it necessary to create a Jira ticket for the PR? I don't have the permissions to do so.

HyukjinKwon pushed a commit that referenced this pull request Jul 21, 2026
### What changes were proposed in this pull request?
Fixed some links in DataFrame and Pandas-On-Spark-DataFrame classes.

### Why are the changes needed?
The documentation will be more comprehensive.

### Does this PR introduce any user-facing change?
No. This is a documentation-only change.

### How was this patch tested?
Manual review.

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

Closes #57359 from art000109/master.

Lead-authored-by: art000109 <59031761+art000109@users.noreply.github.com>
Co-authored-by: Artem Kozhin <artlkoa34@gmail.com>
Signed-off-by: Hyukjin Kwon <hyukjin.kwon@databricks.com>
(cherry picked from commit c198adc)
Signed-off-by: Hyukjin Kwon <hyukjin.kwon@databricks.com>
@HyukjinKwon

Copy link
Copy Markdown
Member

Merge Summary:

Posted by merge_spark_pr.py

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants