Skip to content

ENH: add "right" argument to "qcut", like "cut" has #58933

Open
@dwayne298

Description

@dwayne298

Feature Type

  • Adding new functionality to pandas

  • Changing existing functionality in pandas

  • Removing existing functionality in pandas

Problem Description

In the cut function, you can specify "right" which defines whether bins includes the rightmose edge or not. It would be useful to have the same functionality with qcut

Feature Description

From a naïve perspective, I think you could just add right=right when _bins_to_cuts is called, just as it is done in cut

Alternative Solutions

Current alternative I think would be to calculate the quantiles outside of pandas and then use those as bins for cut

Additional Context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions