Now I am trying to read the array in the file named "filin1" such as:
filin1 = [1,3,4, ....,nan,nan,nan..] (in the file, actually it is just a column not an array like this)
So, I am trying to use numpy.genfromtxt as:
np.genfromtxt(filin1,dtype=None,delimiter=',',usecols=[0],missing_values='Missing',usemask=False,filling_values=np.nan)
I expected to get [1,3,4, ....,nan,nan,nan..], but turned out to be:
[1,3,4, ....,0.,0.,0...]
I would like to hold 'nan' without converting it to '0.'.
Would you please give any idea or advice?
Thank you, Isaac