I have two numpy arrays:
A = [ 186., 176., 158., 180., 186., 168., 168., 164., 178., 170., 189., 195.,
172., 187., 180., 186., 185., 168., 179., 178., 183., 179., 170., 175.]
B = [ -1., 60., 45., 58., 70., 70., 60., 64., 68., 78., 80., 78.,
66., 74., 84., 85., 75., 60., 71., 67., 88., -1., 70., 60.]
I want to stack only Positive values and I don't know how?
I used numpy masked array to mask "-1"s from B
thank you
Cis the result of the operation you want to do, could you add to your question exactly whatCwould be?