Skip to content

np.rec.fromrecords looks broken since 1.14.0 #10870

Closed
@code-of-kpp

Description

@code-of-kpp
>>> dt = [('a', int), ('b', float)]
>>> np.rec.fromrecords([ [1, 1.5], [2, 2.5] ], dtype=dt)
rec.array([[(1, 1. ), (1, 1.5)],
           [(2, 2. ), (2, 2.5)]],
          dtype=[('a', '<i8'), ('b', '<f8')])

while in 1.13.3 that would be:

rec.array([(1,  1.5), (2,  2.5)], 
          dtype=[('a', '<i8'), ('b', '<f8')])

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions