How does one remove positive infinity numbers from a numpy array once these are already converted into a number format? I am using a package which uses numpy internally, however when returning certain arrays, certain values are returned as the 1.79769313486e+308 positive infinity number.
Is there an elegant and fast way to remove these (I would like '0' in my case), or is iterating through the array the best solution?

所有评论(0)