I have an array of the form:
array = ['A', 'D', 'A', 'A', 'A', 'D', 'A', 'A', 'D', 'A']
And I need to get the positions of the array where I find 'D' . What I'm trying to do is:
d_pos[numpy.where(array == 'D')]
But I get the foll...
asked by
21.09.2016 / 20:34