Skip to content

DEPR: __invert__ on non-bool dtypes #51567

Open
@jbrockmendel

Description

@jbrockmendel

ATM we allow ~obj with any dtype, but the pyarrow dtypes only allow it with boolean dtype. We should be consistent here, either allowing it for all dtypes or for only-bool dtypes. On a call with @mroeschke and @jorisvandenbossche a couple weeks ago we were leaning towards only-bool, though I forget the exact reasoning. Either of you remember?

Metadata

Metadata

Assignees

No one assigned

    Labels

    DeprecateFunctionality to remove in pandasNeeds DiscussionRequires discussion from core team before further actionNumeric OperationsArithmetic, Comparison, and Logical operations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions