From b6272af862d5559e0c088e94bfd4272dd9264409 Mon Sep 17 00:00:00 2001 From: Felipe Signorini Date: Sat, 1 Dec 2018 19:50:35 -0200 Subject: [PATCH] bugfix - check if the result o aggr is pandas Series --- app/libs/makeAggregation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/libs/makeAggregation.py b/app/libs/makeAggregation.py index 2ddd7ad..f569545 100644 --- a/app/libs/makeAggregation.py +++ b/app/libs/makeAggregation.py @@ -13,7 +13,7 @@ def make_aggregation(data): for mapp in mapperA(): result = factory.run(mapp) - if result is not None: + if isinstance(result, pd.Series): entity = mapp.uniqueField() aggr[entity] = { 'label': result.index.tolist(),