python - Average a list of dictionaries based on key -
having list of n - dictionaries sample below: n = [ {'gb_written': '6.63', 'avg_write_put': '81.45', 'bgb_written': '4.78', 'bbytes_written': '5129101312', 'body_len': '512', 'body_len_dist': '32', 'bytes_written': '7118499840', 'cache_size': '2.00', 'device': 1, 'documents': '1000000', 'duration': '60', 'engine': 2, 'key_len': '32', 'key_len_dist': '2', 'read_ops': '31287.45', 'read_us': '31.96', 'reads': '1879063', 'thread_reader': '1', 'thread_writer': '1', 'total_ops': '2885853', 'write_amp': '9.4', 'write_ops': '16763.61', 'write_us': '59.65', 'writes': '1006790', ...