I have the below question to get a mean out of dataframe in a dictionary. The dictionary part is messing me up and wondering if anyone can help guide/teach me on this?
Question - Get the mean SalesDif
for each Manager
in a dictionary ans7
, which has Manager
as the key and mean results as the value.
Store TimeStamp Manager Projected_Sales Sales DT TTL SalesDif
0 4007 2017-02-04 07:10:00 Monica H 281.0 296.0 192 15.0
1 4007 2017-02-04 08:04:00 David H 670.0 347.0 111 323.0
2 4007 2017-02-03 18:41:00 David H 784.0 649.0 143 135.0
3 4007 2017-02-04 10:06:00 David H 852.0 750.0 158 102.0
4 4007 2017-02-05 10:57:00 Zoey D 54.0 108.0 104 54.0
... ... ... ... ... ... ... ...
13173 16250 2017-09-25 13:22:00 Carmella R 669.0 758.0 238 89.0