Skip to content

qcut fails with labels=True #26963

Open
Open
@RoyalTS

Description

@RoyalTS

The docs say that qcut() takes either a list or a boolean as its labels argument. The argument is None by default. This, which I would have expected to give me the standard set of labels -- like None -- errors:

pd.qcut(range(5), 4, labels=True)

This may well be expected behavior, but it does strike me as semantically weird.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions