Reading empty or nan array
-
After having done to convert the empty array into float using numpy, still the output shows nan on the array, not sure where I am doing the mistake, please help me fix it , thanks in advance...
@def loadCsv(self, fileName):
tempVar = pd.read_csv(fileName, usecols=[5])
irItems = np.array(tempVar)
irItems[np.where(irItems == '')] = '0'
irItems.astype(np.float)print(irItems)@
[[ nan]
[ nan]
[ nan]
...,
[ 2.69350944e+08]
[ 2.69964736e+08]
[ nan]] -
Hi,
How is this question related to Qt ?
-
Hi SGaist,
I have been working in Qt, where in I got stuck in this routine, may someone will help me to fix this, thanks
-
The thing is, with the code you are giving here, there's absolutely no relation with any Qt type, class or function. Thus my current guess is that it's python only code for which you should rather ask on a python forum
-
We already have C++ Gurus forum,
probably we should create another Python Gurus forum to avoid this kind of situation? -
Not a bad idea since there's PySide and PyQt
-
Thanks guys...Will look for appropriate forums...