Skip to content

BUG: boolean op with empty frames should not raise #5808

Closed
@jreback

Description

@jreback
In [4]: DataFrame(index=[1]) & DataFrame(index=[1])
TypeError: ufunc 'bitwise_and' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

should just return an empty frame (also raises if one side is non-empty)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions