Skip to content

.max() and .min() don't work on arrays of type 'S' and 'U' (Trac #1316) #1914

Open
@thouis

Description

@thouis

Original ticket http://projects.scipy.org/numpy/ticket/1316 on 2009-12-07 by @mdboom, assigned to unknown.

This is a sensible operation. It would be nice to make it work if possible.

In [25]: x.max()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

/wonkabar/data1/builds/betadrizzle/<ipython console> in <module>()

TypeError: cannot perform reduce with flexible type

In [26]: x.min()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

/wonkabar/data1/builds/betadrizzle/<ipython console> in <module>()

TypeError: cannot perform reduce with flexible type

In [27]:

Metadata

Metadata

Assignees

No one assigned

    Labels

    00 - BugProjectPossible project, may require specific skills and long commitmentcomponent: Other

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions