Skip to content

Possibility to include np.inf as end point in pd.cut bins. #3415

Closed
@mattias-lundell

Description

@mattias-lundell

I don't know if it is desirable, but I think it would be nice to be able to include an infinity value as the endpoint to the bins in pandas cut function.

pd.cut([10, 20], [1, 5, np.inf], right=False)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugNumeric OperationsArithmetic, Comparison, and Logical operations

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions