From a601359459f51c9226825d7ee252102a31bf1e0b Mon Sep 17 00:00:00 2001 From: Eliza Mae Saret Date: Fri, 9 Aug 2019 12:11:51 +0800 Subject: [PATCH] Update sample() documentation Clarify the definition of replace parameter --- pandas/core/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c38489c7b85ef..5a1b2a5dcd20b 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4786,7 +4786,7 @@ def sample( frac : float, optional Fraction of axis items to return. Cannot be used with `n`. replace : bool, default False - Sample with or without replacement. + Allow or disallow sampling of the same row more than once. weights : str or ndarray-like, optional Default 'None' results in equal probability weighting. If passed a Series, will align with target object on index. Index