Skip to content

Commit

Permalink
bugfix - check if the result o aggr is pandas Series
Browse files Browse the repository at this point in the history
  • Loading branch information
Signorini committed Dec 1, 2018
1 parent 7c07062 commit b6272af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/libs/makeAggregation.py
Expand Up @@ -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(),
Expand Down

0 comments on commit b6272af

Please sign in to comment.