@@ -78,7 +78,7 @@ def get_form(action, method, filter_data, data):
'group': 2,
'unit': 3
}[x])
- data = data.groupby([
+ data = data[data['$/unit'].apply(lambda x: (x or False) and True)].groupby([
k for k in keys if k != 'unit'
]).size().reset_index()[[