bug fix: ambiguous thruth value of series
This commit is contained in:
parent
b1a9a9fcb9
commit
93176a2d09
|
@ -609,7 +609,7 @@ class Predict(GNet):
|
||||||
# let's get the missing rows (if any) ...
|
# let's get the missing rows (if any) ...
|
||||||
#
|
#
|
||||||
ii = df.apply(lambda row: np.sum(row) == 0 ,axis=1)
|
ii = df.apply(lambda row: np.sum(row) == 0 ,axis=1)
|
||||||
if ii :
|
if ii.shape[0] == 0 :
|
||||||
#
|
#
|
||||||
#@TODO Have this be a configurable variable
|
#@TODO Have this be a configurable variable
|
||||||
missing = np.repeat(0, np.where(ii==1)[0].size)
|
missing = np.repeat(0, np.where(ii==1)[0].size)
|
||||||
|
|
Loading…
Reference in New Issue