bug fix: missing data, adding an additional type: pandas._lib.missing.NAType in addition to np.nan, np.na

This commit is contained in:
Steve Nyemba 2022-05-17 13:27:13 -05:00
parent 6841ccbd5e
commit 1dae4ffba8
2 changed files with 1 additions and 3 deletions

View File

@ -99,7 +99,6 @@ class Learner(Process):
for name in columns :
_index = np.random.choice(np.arange(self._df[name].size),5,False)
no_value = [type(value) in [int,float,np.int64,np.int32,np.float32,np.float64] for value in self._df[name].values[_index]]
print ([name,np.sum(no_value)])
no_value = 0 if np.sum(no_value) > 0 else ''
self._df[name] = self._df[name].fillna(no_value)

View File

@ -196,7 +196,6 @@ class Input :
:param rows np.array or list of vector of values
:param cols a space of values if it were to be different fromt he current sample.
"""
if not cols:
#
# In the advent the sample rows do NOT have the values of the