@@ -66,11 +66,12 @@ def cut(
66
66
``right == True`` (the default), then the `bins` ``[1, 2, 3, 4]``
67
67
indicate (1,2], (2,3], (3,4]. This argument is ignored when
68
68
`bins` is an IntervalIndex.
69
- labels : array or bool, optional
69
+ labels : array or False, default None
70
70
Specifies the labels for the returned bins. Must be the same length as
71
71
the resulting bins. If False, returns only integer indicators of the
72
72
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.
74
75
retbins : bool, default False
75
76
Whether to return the bins or not. Useful when bins is provided
76
77
as a scalar.
@@ -287,10 +288,10 @@ def qcut(
287
288
q : int or list-like of int
288
289
Number of quantiles. 10 for deciles, 4 for quartiles, etc. Alternately
289
290
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
291
292
Used as labels for the resulting bins. Must be of the same length as
292
293
the resulting bins. If False, return only integer indicators of the
293
- bins.
294
+ bins. If True, raises an error.
294
295
retbins : bool, optional
295
296
Whether to return the (bins, labels) or not. Can be useful if bins
296
297
is given as a scalar.
0 commit comments