You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/11/29 08:47:29 UTC

[GitHub] [spark] bjornjorgensen commented on a diff in pull request #38824: [SPARK-41304][CONNECT][PYTHON][DOCS] Add missing docs for DataFrame API

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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org