bjornjorgensen commented on code in PR #38824:
URL: https://github.com/apache/spark/pull/38824#discussion_r1034454109
##########
python/pyspark/sql/connect/dataframe.py:
##########
@@ -409,9 +441,39 @@ def join(
)
def limit(self, n: int) -> "DataFrame":
+ """Limits the result count to the number specified.
+
+ .. versionadded:: 3.4.0
+
+ Parameters
+ ----------
+ num : int
+ Number of records to return. Will return this number of records
+ or whataver number is available.
Review Comment:
@amaliujia thank you, much better
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]