Find below my solution to the problem of specific delete strings from a numpy array. The solution is provided as a single line:
and is based on pure numpy functions (np.bitwise_and, np.where, np.delete).
A = np.array( [ [ 18, 6.215, 0.025 ], [ 19, 6.203, 0.025 ], [ 20, 6.200, 0.025 ], [ 21, 6.205, 0.025 ], [ 22, 6.201, 0.026 ], [ 23, 6.197, 0.026 ], [ 24, 6.188, 0.024 ], [ 25, 6.187, 0.023 ], [ 26, 6.189, 0.021 ], [ 27, 6.188, 0.020 ], [ 28, 6.192, 0.019 ], [ 29, 6.185, 0.020 ], [ 30, 6.189, 0.019 ], [ 31, 6.191, 0.018 ], [ 32, 6.188, 0.019 ], [ 33, 6.187, 0.019 ], [ 34, 6.194, 0.021 ], [ 35, 6.192, 0.024 ], [ 36, 6.193, 0.024 ], [ 37, 6.187, 0.026 ], [ 38, 6.184, 0.026 ], [ 39, 6.183, 0.027 ], [ 40, 6.189, 0.027 ] ] )