Skip to content

Inconsistent comparisons between Series and 2-D ndarray #4615

Closed
@cpcloud

Description

@cpcloud

related: #4585

In [5]: randn(10, 2) == Series(randn(2))
Out[5]:
array([[False, False],
       [False, False],
       [False, False],
       [False, False],
       [False, False],
       [False, False],
       [False, False],
       [False, False],
       [False, False],
       [False, False]], dtype=bool)

but

In [6]: randn(10, 2) <= Series(randn(2))

throws an Exception.

got a PR in the works

Metadata

Metadata

Labels

BugNumeric 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