From 8eec2b879273b9e1a83f946bc784c03383a20595 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 9 Sep 2022 08:27:42 +0300 Subject: Remove `None` values from dataset --- wqflask/wqflask/correlation/rust_correlation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wqflask/wqflask/correlation/rust_correlation.py b/wqflask/wqflask/correlation/rust_correlation.py index 251ada7b..775f4ee9 100644 --- a/wqflask/wqflask/correlation/rust_correlation.py +++ b/wqflask/wqflask/correlation/rust_correlation.py @@ -234,7 +234,7 @@ def __compute_sample_corr__( target_data = [] for (key, val) in target_dataset.trait_data.items(): - lts = [key] + [str(x) for x in val] + lts = [key] + [str(x) for x in val if x is not None] r = ",".join(lts) target_data.append(r) -- cgit v1.2.3