8000 BUG: np.ma.take does not work on string arrays · Issue #9206 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
BUG: np.ma.take does not work on string arrays #9206
Open
@eric-wieser

Description

@eric-wieser
>>> m = np.ma.array(["hello"])
>>> np.ma.take(m, 0)
  File "\numpy\ma\core.py", line 5670, in take
    out = _data.take(indices, axis=axis, mode=mode)[...].view(cls)
TypeError: string indices must be integers

Since np.string_[...] is not supported

Introduced by #7586

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0