xinrong-databricks commented on code in PR #36306:
URL: https://github.com/apache/spark/pull/36306#discussion_r856418197
##########
python/pyspark/pandas/frame.py:
##########
@@ -8659,6 +8664,14 @@ def sample(
falcon 2 2 10
fish 0 0 8
+ A random 50% sample of the ``DataFrame``, while ignoring the index.
+
+ >>> df.sample(frac=0.5, random_state=1, ignore_index=True) # doctest:
+SKIP
Review Comment:
The sampled rows may not be fixed even with the seed, so we skip the
doctests as well as the unit tests.
--
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]