bug fix: ambiguous thruth value of series

This commit is contained in:
Steve Nyemba 2020-02-25 12:23:40 -06:00
parent b1a9a9fcb9
commit 93176a2d09
1 changed files with 1 additions and 1 deletions

View File

@ -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)