Skip to content

Array.apply does not detect dtype correctly #989

Open
@gdementen

Description

@gdementen

I tried this as a workaround to #988:

>>> arr = full("a=a0..a2", None)
>>> arr.dtype
dtype('O')
>>> arr['a1'] = 'value'
>>> arr == None
False
>>> arr.apply(lambda v: 0 if v is None else v)
ValueError: invalid literal for int() with base 10: 'value'
>>> arr.apply(lambda v: 0 if v is None else v, dtype=object)
a  a0     a1  a2
    0  value   0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions