Skip to content

regression in np.concatenate with object dtypes in 1.10 #6014

Closed
@jreback

Description

@jreback

This was working as of this commit: 1.10.0.dev0+95b2c24 (and in 1.9.2), so just broken very recently

In [1]: np.__version__
Out[1]: '1.10.0.dev0+3d2b8ca'

In [3]: np.concatenate([np.array(['a','b'],dtype=object),np.array(['a','b'],dtype=object)],axis=1)
IndexError: axis 1 out of bounds [0, 1)
In [3]:  np.concatenate([np.array(['a','b'],dtype=object),np.array(['a','b'],dtype=object)],axis=1)
Out[3]: array(['a', 'b', 'a', 'b'], dtype=object)

In [4]: np.__version__
Out[4]: '1.9.2'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions