Skip to content

Commit 62429ae

Browse files
lizsarettopper-123
authored andcommitted
Update sample() documentation (#27833)
Clarify the definition of replace parameter
1 parent 0227e69 commit 62429ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4786,7 +4786,7 @@ def sample(
47864786
frac : float, optional
47874787
Fraction of axis items to return. Cannot be used with `n`.
47884788
replace : bool, default False
4789-
Sample with or without replacement.
4789+
Allow or disallow sampling of the same row more than once.
47904790
weights : str or ndarray-like, optional
47914791
Default 'None' results in equal probability weighting.
47924792
If passed a Series, will align with target object on index. Index

0 commit comments

Comments
 (0)