inspect-analysis.py 529 B

1234567891011
  1. import json
  2. p='.scratch/cockpit-real-data-wayfinding/verify/artifacts/t67/geo-ev-analysis-none.json'
  3. with open(p,encoding='utf-8') as f: d=json.load(f)
  4. data=d['data']
  5. for dim in data['dimensions']:
  6. print(dim['dimensionCode'], '|', dim.get('dimensionLabel'), '| total', dim.get('totalCount'))
  7. for b in dim.get('buckets',[]):
  8. print(' ', b.get('bucketCode'), '|', b.get('bucketLabel'), '|', b.get('count'), '|', b.get('percentage'))
  9. print()
  10. print('filters:', json.dumps(data.get('filters'), ensure_ascii=False))