@@ -63,7 +63,10 @@ class DataProcessor(object):
if total_view == 0:
label = None
else:
- label = float(total_return) / float(total_view)
+ if total_return == 0:
+ label = None
+ else:
+ label = float(total_return) / float(total_view)
return label, label_dt