Skip to content

Commit 8ea23ff

Browse files
committed
Update docs for qcut/cut
1 parent dcb8fd2 commit 8ea23ff

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pandas/core/reshape/tile.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ def cut(
6666
``right == True`` (the default), then the `bins` ``[1, 2, 3, 4]``
6767
indicate (1,2], (2,3], (3,4]. This argument is ignored when
6868
`bins` is an IntervalIndex.
69-
labels : array or bool, optional
69+
labels : array or False, default None
7070
Specifies the labels for the returned bins. Must be the same length as
7171
the resulting bins. If False, returns only integer indicators of the
7272
bins. This affects the type of the output container (see below).
73-
This argument is ignored when `bins` is an IntervalIndex.
73+
This argument is ignored when `bins` is an IntervalIndex. If True,
74+
raises an error.
7475
retbins : bool, default False
7576
Whether to return the bins or not. Useful when bins is provided
7677
as a scalar.
@@ -287,10 +288,10 @@ def qcut(
287288
q : int or list-like of int
288289
Number of quantiles. 10 for deciles, 4 for quartiles, etc. Alternately
289290
array of quantiles, e.g. [0, .25, .5, .75, 1.] for quartiles.
290-
labels : array or bool, default None
291+
labels : array or False, default None
291292
Used as labels for the resulting bins. Must be of the same length as
292293
the resulting bins. If False, return only integer indicators of the
293-
bins.
294+
bins. If True, raises an error.
294295
retbins : bool, optional
295296
Whether to return the (bins, labels) or not. Can be useful if bins
296297
is given as a scalar.

0 commit comments

Comments
 (0)