I have the following data frame like (in reality with hundreds of rows)
Location Date Court Winner
0 Paris 10/2/2018 Outdoor Flavio
1 Paris 10/2/2018 Indoor Luca
2 Paris 10/2/2018 Indoor Giovanni
3 Paris 10/2/2018 Indoor Luca
What I want to do is to get a nested dictionary that look like that:
{ 'Flavio' : { 'Outdoor' : 1 , 'Indoor' : 0 } , 'Luca' : {'Outdoor' : 0 , 'Indoor' : 2} }
and so on. So in other words I want to determine the number of times winners won in the Outdoor and in the Indoor court.
Thank you in advance!