Jun-12-2018, 07:54 AM
There may be a more clever numpy way to get here but this seems to be about what you want:
The key is this line:
The key is this line:
valid = x[x[:,0] == unique]Where we are using advanced indexing to pull out only the values where the first value equals the particular unique value.