Skip to content

Commit

Permalink
doc(python): Make python polars.DataFrame.sample shuffle description …
Browse files Browse the repository at this point in the history
…more explicit (#7184)
  • Loading branch information
foxcroftjn authored Feb 25, 2023
1 parent 5f26668 commit e6b9930
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion py-polars/polars/internals/dataframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -6843,7 +6843,9 @@ def sample(
with_replacement
Allow values to be sampled more than once.
shuffle
Shuffle the order of sampled data points.
If set to True, the order of the sampled rows will be shuffled. If
set to False (default), the order of the returned rows will be
neither stable nor fully random.
seed
Seed for the random number generator. If set to None (default), a random
seed is generated using the ``random`` module.
Expand Down

0 comments on commit e6b9930

Please sign in to comment.