Skip to content

Regression in numpy.insert() when axis != None #392

Closed
@vizowl

Description

@vizowl

I believe that the fix to Ticket #808 has caused a regression in numpy.insert()

This is the commit

Previously:

np.insert([[1,1,1]], 0, [2,2,2], axis=0)

gave:

 array([[2, 2, 2],
      [1, 1, 1]])

now it gives

array([[2, 2, 2],
   [2, 2, 2],
   [2, 2, 2],
   [1, 1, 1]])

I don't think is the correct result.

Also issue #378 is a result of same change

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions