From 93176a2d09e3234b9937865bc3033214a40d0a23 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Tue, 25 Feb 2020 12:23:40 -0600 Subject: [PATCH] bug fix: ambiguous thruth value of series --- data/gan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/gan.py b/data/gan.py index 0d449d2..621cea9 100644 --- a/data/gan.py +++ b/data/gan.py @@ -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)