Skip to content

comparison between Array and None (or an Axis) returns False (single value) #988

Closed
@gdementen

Description

@gdementen

This is a regression in 0.33 (39ced81) because None is not a scalar for np.isscalar

Test case:

>>> arr = full("a=a0..a2", None)
>>> arr == None
False

One workaround is (we can use is too but it is farther from the original code):

>>> arr.apply(lambda v: v == None)
a    a0    a1    a2
   True  True  True

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions