Skip to content

Commit 4dbeaf3

Browse files
committed
doc text fix
1 parent 2aacee7 commit 4dbeaf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/source/user_guide/indexing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ to have different probabilities, you can pass the ``sample`` function sampling w
700700
701701
s = pd.Series([0, 1, 2, 3, 4, 5])
702702
example_weights = [0, 0, 0.2, 0.2, 0.2, 0.4]
703-
s.sample(n=3, weights=example_weights)
703+
s.sample(n=2, weights=example_weights)
704704
705705
# Weights will be re-normalized automatically
706706
example_weights2 = [0.5, 0, 0, 0, 0, 0]

0 commit comments

Comments
 (0)