Skip to content

Commit 2d161dd

Browse files
committed
fix docs
1 parent fb89d13 commit 2d161dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/source/user_guide/indexing.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,10 +712,9 @@ as a string.
712712

713713
.. ipython:: python
714714
715-
1/0
716715
df2 = pd.DataFrame({'col1': [9, 8, 7, 6],
717716
'weight_column': [0.5, 0.4, 0.1, 0]})
718-
df2.sample(n=3, weights='weight_column')
717+
df2.sample(n=2, weights='weight_column')
719718
720719
``sample`` also allows users to sample columns instead of rows using the ``axis`` argument.
721720

0 commit comments

Comments
 (0)