Answer by jpp for How to use 2 different conditions to filter an array in python
You do not need logical and. To print a tuple of arrays, simply print a comma-separated sequence of arrays:print ID[hist[0]<20000], m[hist[1]<11.5]ID will be indexed by the Boolean array...
View ArticleAnswer by Joaquin for How to use 2 different conditions to filter an array in...
I didn't understand your code, but from the title I advise you to define a function that given one point, returns true if that point should be filtered. Then you can do:def filter_point(point): #...
View ArticleHow to use 2 different conditions to filter an array in python
I am trying to create a new array, which will consist of (data value <=20000) from the first column, along with all other corresponding columns. Mathematically I am doing the following: I am reading...
View Article