Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pandas/core/reshape/tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ def qcut(
x,
q,
labels=None,
right: bool = True,
retbins: bool = False,
precision: int = 3,
duplicates: str = "raise",
Expand Down Expand Up @@ -323,6 +324,11 @@ def qcut(
The precision at which to store and display the bins labels.
duplicates : {default 'raise', 'drop'}, optional
If bin edges are not unique, raise ValueError or drop non-uniques.
right : bool, default True
Indicates whether `bins` includes the rightmost edge or not. If
``right == True`` (the default), then the `bins` ``[1, 2, 3, 4]``
indicate (1,2], (2,3], (3,4]. This argument is ignored when
`bins` is an IntervalIndex.

Returns
-------
Expand Down Expand Up @@ -378,6 +384,7 @@ def qcut(
x_idx,
Index(bins),
labels=labels,
right=right,
precision=precision,
include_lowest=True,
duplicates=duplicates,
Expand Down
Loading