Questions tagged [masked-array]

Masked arrays are NumPy arrays that may have missing or invalid entries. The `numpy.ma` module provides a nearly work-alike replacement for NumPy that supports data arrays with masks.

151 questions
-3
votes
2 answers

How to select on masked indices from non-masked array?

I just realized that my masked array doesn't work as indices for selection. When I do mathematical operations, such as max() it works, but not with selections. import numpy as np array = np.arange(3,8) indices =…
Anonymous
  • 4,692
  • 8
  • 61
  • 91
1 2 3
10
11