Skip to content

Commit 1281002

Browse files
committed
update doc
1 parent 2f2e9d5 commit 1281002

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/core/generic.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5815,6 +5815,8 @@ def sample(
58155815
If weights do not sum to 1, they will be normalized to sum to 1.
58165816
Missing values in the weights column will be treated as zero.
58175817
Infinite values not allowed.
5818+
When replace = True will not allow weights that add up to less
5819+
than 1, to avoid biased results.
58185820
random_state : int, array-like, BitGenerator, np.random.RandomState, np.random.Generator, optional
58195821
If int, array-like, or BitGenerator, seed for random number generator.
58205822
If np.random.RandomState or np.random.Generator, use as given.

0 commit comments

Comments
 (0)