It looks like you just need a basic integer array indexing:
filter_indices = [1,3,5]
np.array([11,13,155,22,0xff,32,56,88])[filter_indices]
More Related Contents:
- Computing the correlation coefficient between two multi-dimensional arrays
- How does condensed distance matrix work? (pdist)
- A tool to convert MATLAB code to Python [closed]
- ImportError in importing from sklearn: cannot import name check_build
- binning data in python with scipy/numpy
- Compute a confidence interval from sample data
- Import Error: No module named numpy
- Calculating Pearson correlation and significance in Python
- Calculating the area under a curve given a set of coordinates, without knowing the function
- ImportError: cannot import name NUMPY_MKL
- How to add a new row to an empty numpy array
- Map each list value to its corresponding percentile
- Improving FFT performance in Python
- Creating a Confidence Ellipses in a sccatterplot using matplotlib
- Most efficient way to calculate radial profile
- Efficient distance calculation between N points and a reference in numpy/scipy
- How can I efficiently process a numpy array in blocks similar to Matlab’s blkproc (blockproc) function
- How to calculate cumulative normal distribution?
- Concatenate sparse matrices in Python using SciPy/Numpy
- How to display progress of scipy.optimize function?
- Fitting a Weibull distribution using Scipy
- How to convert a column or row matrix to a diagonal matrix in Python?
- How to do a polynomial fit with fixed points
- How to smooth a curve for a dataset
- How to transform numpy.matrix or array to scipy sparse matrix
- Matplotlib – Finance volume overlay
- sparse 3d matrix/array in Python?
- Convert Pandas dataframe to Sparse Numpy Matrix directly
- Structure of inputs to scipy minimize function
- ValueError: Dimension mismatch