So, lets say I have 100,000 float arrays with 100 elements each. I need the highest X number of values, BUT only if they are greater than Y. Any element not matching this
You can use map and lambda, it should be fast enough.
new_array = map(lambda x: x if x>y else 0, array)