Skip to content

DataFrame stores complex number as object sometimes #1083

Closed
@tkf

Description

@tkf
>>> DataFrame([[0.0 + 1j, 0.0 + 2j]]).values
array([[1j, 2j]], dtype=object)
>>> DataFrame([np.array([1j, 2j])]).values
array([[ 0.+1.j,  0.+2.j]])

I think these two examples should yield the same result.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions