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 ?
-
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
-
Not a bad idea since there's PySide and PyQt