8000 Masked arrays: keepdims is not enforced in numpy.ma.amax · Issue #7720 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
Masked arrays: keepdims is not enforced in numpy.ma.amax #7720
Closed
@ycopin

Description

@ycopin

The keepdims option is not enforced in fonction numpy.ma.amax:

>>> import numpy
>>> x = numpy.random.randn(4, 3)
>>> numpy.amax(x, axis=-1, keepdims=True).shape
(4, 1)
>>> numpy.ma.amax(numpy.ma.masked_array(x), axis=-1, keepdims=True).shape
(4,)

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

      0