為了將結果能夠被python其他函式處理,尤其numpy庫,需要將nan,inf轉為python所能識別的型別。這裡將nan,inf替換0作為例子。 In[1]: import numpy as np ...
確定! 回上一頁