SyntaxFix
Write A Post
Hire A Developer
Questions
If you're using numpy
numpy
# first get the indices where the values are finite ii = np.isfinite(x) # second get the values x = x[ii]