I have a dictionary in the following format:
{
'1000': {
'owner_id':'1000',
'in_hours':100,
'us_hours':200,
'total_revenue':100
},
'1084': {
'owner_id':'10084',
'in_hours':100,
'us_hours':200,
'total_revenue':100
}
}
Now I need the sum like the following:
{
'in_hours':200,
'us_hours':400,
'total_revenue':200
}
How to do this? I know I can do this in a loop, but I have a number of keys and I don't want to specify all of them individually.