bug fix: ambiguous thruth value of series

dev
Steve L. Nyemba 5 years ago
parent b1a9a9fcb9
commit 93176a2d09

@ -609,7 +609,7 @@ class Predict(GNet):
# let's get the missing rows (if any) ...
#
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
missing = np.repeat(0, np.where(ii==1)[0].size)

Loading…
Cancel
Save