Пример #1
0
def std_lstdict(list_of_dictionaries):
    """Calculates standard deviation value for every key for every dictionary from the list list_of_dictionaries."""    
    return dict( ( key,std(extract_values(list_of_dictionaries, key)) ) for key in extract_keys(list_of_dictionaries) )
Пример #2
0
def avg_lstdict(list_of_dictionaries):
    """Calculates average value for every key for every dictionary from the list list_of_dictionaries."""    
    return dict( ( key,avg(extract_values(list_of_dictionaries, key)) ) for key in extract_keys(list_of_dictionaries) )